class Qdrant::Api::FieldCondition

Overview

All possible payload filtering conditions

Included Modules

Defined in:

qdrant-api/models/field_condition.cr

Constructors

Instance Method Summary

Macros inherited from module Qdrant::Api::Validation

validates(name, klass, nilable, **rules) validates

Instance methods inherited from module Qdrant::Api::Serializable

eql?(other) eql?, to_body : Hash(String, JSON::Any) to_body, to_h : Hash(String, JSON::Any) to_h, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(key : String, match : Match | Nil = nil, range : RangeInterface | Nil = nil, geo_bounding_box : GeoBoundingBox | Nil = nil, geo_radius : GeoRadius | Nil = nil, geo_polygon : GeoPolygon | Nil = nil, values_count : ValuesCount | Nil = nil, is_empty : Bool | Nil = nil, is_null : Bool | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def geo_bounding_box : GeoBoundingBox | Nil #

Check if points geolocation lies in a given area


[View source]
def geo_bounding_box=(geo_bounding_box : GeoBoundingBox | Nil) #

Check if points geolocation lies in a given area


[View source]
def geo_polygon : GeoPolygon | Nil #

Check if geo point is within a given polygon


[View source]
def geo_polygon=(geo_polygon : GeoPolygon | Nil) #

Check if geo point is within a given polygon


[View source]
def geo_radius : GeoRadius | Nil #

Check if geo point is within a given radius


[View source]
def geo_radius=(geo_radius : GeoRadius | Nil) #

Check if geo point is within a given radius


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def is_empty : Bool | Nil #

Check that the field is empty, alternative syntax for is_empty: \"field_name\"


[View source]
def is_empty=(is_empty : Bool | Nil) #

Check that the field is empty, alternative syntax for is_empty: \"field_name\"


[View source]
def is_null : Bool | Nil #

Check that the field is null, alternative syntax for is_null: \"field_name\"


[View source]
def is_null=(is_null : Bool | Nil) #

Check that the field is null, alternative syntax for is_null: \"field_name\"


[View source]
def key : String #

Required properties Payload key


[View source]
def key=(key : String) #

Required properties Payload key


[View source]
def list_invalid_properties #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def match : Match | Nil #

Optional properties Check if point has field with a given value


[View source]
def match=(match : Match | Nil) #

Optional properties Check if point has field with a given value


[View source]
def range : RangeInterface | Nil #

Check if points value lies in a given range


[View source]
def range=(range : RangeInterface | Nil) #

Check if points value lies in a given range


[View source]
def valid? #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]
def values_count : ValuesCount | Nil #

Check number of values of the field


[View source]
def values_count=(values_count : ValuesCount | Nil) #

Check number of values of the field


[View source]