query: exists: fieldchecks if the given field exists in a document. Attention: Checking on a field which has > 1024 sub-fields can cause a too_many_clauses exception
query: should / orOne or all queries provided should
match.
Define how many queries provided need to match at minimum. references: useUse the query which was previously defined by a define reference
query: range: datedo range checks on date fields.
Number used to decrease or increase the relevance scores of a query. query: wildcard: valuechecks if the given fields matches in wildcard with the given value.
The amount of score boosting would be applied whenever this matches.
Default:
1
query: switchReturns a query based of the given expression.
The expression to evaluate. The default statement to be executed. Returns the query matching the expression. Returns true in case a match was found. query: array should / orOne or all queries from array provided should
match array based.
Define how many queries provided need to match at minimum. references: defineStore this query as reference, which can later be used by "use reference"
query: geo: distancechecks if the given fields is within the given distance.
The distance we should search within, e.g. 50km query: prefix: valuechecks if the given field starts with the given value.
The amount of score boosting would be applied whenever this matches.
Default:
1
query: term: fieldsThe amount of score boosting would be applied whenever this matches.
Default:
1
query: term: fuzzyReturns documents that contain terms similar to the search term
Maximum edit distance allowed for matching. Allowed values are AUTO, 0, 1, 2
Default:
AUTO