Neuroplastic::Query
Constants
RANGE_PARAMS = {:gte, :gt, :lte, :lt, :boost}
Constructors
Instance methods
aggs
Sourcebuild
Sourcechild
Sourcedate_histogram(name : String, field : String, *, calendar_interval : String | Nil = nil, fixed_interval : String | Nil = nil, format : String | Nil = nil, min_doc_count : Int | Nil = nil)
Sourcedate_histogram(name : String, field : String, *, calendar_interval : String | Nil = nil, fixed_interval : String | Nil = nil, format : String | Nil = nil, min_doc_count : Int | Nil = nil, &)
Sourceexists(*fields)
Sourcefields
Sourcefilter(filters : Filter)
Sourcefilters(name : String, filters : NamedFilters, *, other_bucket : Bool | Nil = nil, other_bucket_key : String | Nil = nil)
Sourcefilters
Sourcefilters(name : String, filters : NamedFilters, *, other_bucket : Bool | Nil = nil, other_bucket_key : String | Nil = nil, &)
Source"has_parent" query.
Sets the index to the parent
index
Sourcelimit
Sourceminimum_should_match
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
Sourceraw_filter(clause : JSON::Any)
Append a raw Elasticsearch clause verbatim into the bool filter array.
Use for clauses the typed DSL can't express — e.g. a should/
minimum_should_match group combining a range with a missing-field
check, or an OR across two range fields.
search
Sourcesearch_after
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
SourceNested types
- Neuroplastic::Query::AggHash
- Neuroplastic::Query::AggRanges
- Neuroplastic::Query::AggScalar
- Neuroplastic::Query::AggValue
- Neuroplastic::Query::AggregationBuilder
- Neuroplastic::Query::Aggs
- Neuroplastic::Query::Filter
- Neuroplastic::Query::FilterTerm
- Neuroplastic::Query::FilterValue
- Neuroplastic::Query::NamedFilters
- Neuroplastic::Query::NotExistsFilter
- Neuroplastic::Query::RangeQuery
- Neuroplastic::Query::RangeValue
- Neuroplastic::Query::SearchAfter
- Neuroplastic::Query::Sort
- Neuroplastic::Query::Subfilter