LuckySearch::Query
Inherits Reference < Object
Constants
RANGE_PARAMS = {:gte, :gt, :lte, :lt, :boost}
Constructors
new(params : HTTP::Params | Hash(String, String) | Hash(Symbol, String) = {} of String => String)
Sourcenew(search : String, limit : Int32 = 100, offset : Int32 = 0)
SourceClass methods
document_name(klass : Class) : String
SourceInstance methods
build
Sourcechild
Sourceexists(*fields)
Sourcefields
Sourcefilter(filters : Filter)
Sourcefilters
Sourcehas_parent(parent : Class, parent_index : String)
"has_parent" query.
Sets the index to the parent
index
Sourcelimit
Sourcemissing(*fields)
Call to add fields that should be missing Effectively adds a filter that ensures a field is missing
must
Sourcemust_not
Sourceoffset
Sourceparent
Sourcequery_settings
Sourcerange(filter)
Sourcerange
Sourcesearch
Sourcesearch_field(field)
Sourceshould(filters : Filter)
Like filter, but at least one should match in absence of filter/must hits
should
Sourcesort(sort : Sort)
Sourcesort
Source