matches documents matching boolean combinations of other queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
filteruniononeOf
The clause (query) must appear in matching documents.
However, unlike must, the score of the query will be ignored.
QueryorQuery[]
minimum_should_matchnumber | string
Specifies the number or percentage of should clauses returned documents must match.
mustuniononeOf
The clause (query) must appear in matching documents and will contribute to the score.
QueryorQuery[]
must_notuniononeOf
The clause (query) must not appear in the matching documents.
Because scoring is ignored, a score of 0 is returned for all documents.
QueryorQuery[]
shoulduniononeOf
The clause (query) should appear in the matching document.
QueryorQuery[]
boostingobject
Returns documents matching a positive query while reducing the relevance score of documents that also match a negative query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
negative_boostnumberrequired
Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query.
negativeQueryrequired
Query used to decrease the relevance score of matching documents.
positiveQueryrequired
Any returned documents must match this query.
commonmapstring to object · min properties: 1 · max properties: 1
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
cutoff_frequencynumber
high_freq_operatorenum
Values:andANDorOR
low_freq_operatorenum
Values:andANDorOR
minimum_should_matchnumber | string
querystringrequired
combined_fieldsobject
The combined_fields query supports searching multiple text fields as if their contents had been indexed into one combined field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldsstring[]required
List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer.
querystringrequired
Text to search for in the provided fields.
The combined_fields query analyzes the provided text before performing a search.
If true, match phrase queries are automatically created for multi-term synonyms.
operatorenum · default: or
Boolean logic used to interpret text in the query value.
Values:orand
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
zero_terms_queryenum · default: none
Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter.
Supported values include:
none: No documents are returned if the analyzer removes all tokens.
all: Returns all documents, similar to a match_all query.
Values:noneall
constant_scoreobject
Wraps a filter query and returns every matching document with a relevance score equal to the boost parameter value.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
filterQueryrequired
Filter query you wish to run. Any returned documents must match this query.
Filter queries do not calculate relevance scores.
To speed up performance, Elasticsearch automatically caches frequently used filter queries.
dense_vectorobject
Scores every document that has a value for a dense_vector field, with the exact similarity between its vector and a query vector.
Unlike the knn query, it doesn't use an index structure, or a cutoff based on k or num_candidates.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
The name of the dense_vector field to search against.
The field can be indexed, or not indexed (index: false).
query_vectoruniononeOf
The query vector. It must have the same number of dimensions as the field.
You must provide either query_vector or query_vector_builder, but not both.
One of:number[]orstring
query_vector_builderobject
The configuration to build the query vector, for example by running a text embedding model.
You must provide either query_vector or query_vector_builder, but not both.
embeddingobject
inference_idstring
inputuniononeOfrequired
One of:
One of:
{}InferenceString[]
typeenumrequired
The type of data that the value represents.
Values:textimageaudiovideopdf
formatunionenum | stringnullable
The format of the data. If null, the default data format for the given type is used.
Values:textbase64url
valuestringrequired
String which may be raw text, the string representation of some other data such as an image in base64, or a URL that points to the data.
typeenumrequired
The type of data that the value represents.
Values:textimageaudiovideopdf
formatunionenum | stringnullable
The format of the data. If null, the default data format for the given type is used.
Values:textbase64url
valuestringrequired
String which may be raw text, the string representation of some other data such as an image in base64, or a URL that points to the data.
timeoutuniononeOf
Values:-10
text_embeddingobject
model_idstring
Model ID is required for all dense_vector fields but
may be inferred for semantic_text fields
model_textstringrequired
The text to be converted into a vector by the specified model
lookupobject
Lookup a vector from an existing document.
Must reference a dense_vector field and a single value.
idstringrequired
The ID of the document to fetch the vector from
indexstringrequired
The name of the index to fetch the document from
pathstringrequired
The name of the field containing the vector
routingstring
The routing value to use when fetching the document
similarity_functionenum
The similarity used for scoring, which overrides the similarity of the field for this query.
It defaults to the similarity of the field, or to cosine for a field that is not indexed.
For bit fields, only l2_norm is supported.
It can't be combined with quantized: true.
Supported values include:
cosine: Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine
similarity to unit length. This allows to internally use dot_product for computing similarity, which is more
efficient. Original un-normalized vectors can be still accessed through scripts.
The document _score is computed as (1 + cosine(query, vector)) / 2.
The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case.
dot_product: Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity.
The constraints and computed score are defined by element_type.
When element_type is float, all vectors must be unit length, including both document and query vectors.
The document _score is computed as (1 + dot_product(query, vector)) / 2.
When element_type is byte, all vectors must have the same length including both document and query vectors or
results will be inaccurate.
The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the
number of dimensions per vector.
l2_norm: Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors.
The document _score is computed as 1 / (1 + l2_norm(query, vector)^2).
For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used.
The _score transformation is (numBits - hamming(a, b)) / numBits.
max_inner_product: Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors
to be normalized. This means that each vector’s magnitude can significantly effect the score.
The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score
is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score
is calculated max_inner_product(query, vector) + 1.
Values:cosinedot_productl2_normmax_inner_product
quantizedboolean · default: false
If false, the documents are scored with the full-precision vectors, regardless of the index options of the field.
If true, the documents are scored with the quantized vectors of a quantized field, which is faster but less accurate.
For a field that is not quantized, true has no effect.
dis_maxobject
Returns documents matching one or more wrapped queries, called query clauses or clauses.
If a returned document matches multiple query clauses, the dis_max query assigns the document the highest relevance score from any matching clause, plus a tie breaking increment for any additional matching subqueries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
queriesQuery[]required
One or more query clauses.
Returned documents must match one or more of these queries.
If a document matches multiple queries, Elasticsearch uses the highest relevance score.
tie_breakernumber · default: 0
Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses.
distance_featureuniononeOf
Boosts the relevance score of documents closer to a provided origin date or point.
For example, you can use this query to give more weight to documents closer to a certain date or location.
One of:
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
originobjectrequired
Date or point of origin used to calculate distances.
If the field value is a date or date_nanos field, the origin value must be a date.
Date Math, such as now-1h, is supported.
If the field value is a geo_point field, the origin value must be a geopoint.
pivotobjectrequired
Distance from the origin at which relevance scores receive half of the boost value.
If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m.
fieldstringrequired
Name of the field used to calculate distances. This field must meet the following criteria:
be a date, date_nanos or geo_point field;
have an index mapping parameter value of true, which is the default;
have an doc_values mapping parameter value of true, which is the default.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
originuniononeOfrequired
Date or point of origin used to calculate distances.
If the field value is a date or date_nanos field, the origin value must be a date.
Date Math, such as now-1h, is supported.
If the field value is a geo_point field, the origin value must be a geopoint.
One of:
latnumberrequired
Latitude
lonnumberrequired
Longitude
geohashstringrequired
number[]
pivotstringrequired
Distance from the origin at which relevance scores receive half of the boost value.
If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m.
fieldstringrequired
Name of the field used to calculate distances. This field must meet the following criteria:
be a date, date_nanos or geo_point field;
have an index mapping parameter value of true, which is the default;
have an doc_values mapping parameter value of true, which is the default.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
originstringrequired
Date or point of origin used to calculate distances.
If the field value is a date or date_nanos field, the origin value must be a date.
Date Math, such as now-1h, is supported.
If the field value is a geo_point field, the origin value must be a geopoint.
pivotuniononeOfrequired
Distance from the origin at which relevance scores receive half of the boost value.
If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m.
Values:-10
fieldstringrequired
Name of the field used to calculate distances. This field must meet the following criteria:
be a date, date_nanos or geo_point field;
have an index mapping parameter value of true, which is the default;
have an doc_values mapping parameter value of true, which is the default.
existsobject
Returns documents that contain an indexed value for a field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
Name of the field you wish to search.
function_scoreobject
The function_score enables you to modify the score of documents that are retrieved by a query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
boost_modeenum · default: multiply
Defines how he newly computed score is combined with the score of the query
Supported values include:
multiply: Query score and function score are multiplied
replace: Only the function score is used.
The query score is ignored.
sum: Query score and function score are added
avg: Query score and function score are averaged
max: Max of query score and function score
min: Min of query score and function score
Values:multiplyreplacesumavgmaxmin
functionsobject[]
One or more functions that compute a new score for each document returned by the query.
filterQuery
weightnumber
expuniononeOf
Function that scores a document with a exponential decay, depending on the distance of a numeric field value of the document from an origin.
One of:
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
gaussuniononeOf
Function that scores a document with a normal decay, depending on the distance of a numeric field value of the document from an origin.
One of:
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
linearuniononeOf
Function that scores a document with a linear decay, depending on the distance of a numeric field value of the document from an origin.
One of:
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
multi_value_modeenum · default: min
Determines how the distance is calculated when a field used for computing the decay contains multiple values.
Supported values include:
min: Distance is the minimum distance.
max: Distance is the maximum distance.
avg: Distance is the average distance.
sum: Distance is the sum of all distances.
Values:minmaxavgsum
field_value_factorobject
Function allows you to use a field from a document to influence the score.
It’s similar to using the script_score function, however, it avoids the overhead of scripting.
fieldstringrequired
Field to be extracted from the document.
factornumber · default: 1
Optional factor to multiply the field value with.
missingnumber
Value used if the document doesn’t have that field.
The modifier and factor are still applied to it as though it were read from the document.
modifierenum
Modifier to apply to the field value.
Supported values include:
none: Do not apply any multiplier to the field value.
log: Take the common logarithm of the field value.
Because this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use log1p instead.
log1p: Add 1 to the field value and take the common logarithm.
log2p: Add 2 to the field value and take the common logarithm.
ln: Take the natural logarithm of the field value.
Because this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use ln1p instead.
ln1p: Add 1 to the field value and take the natural logarithm.
ln2p: Add 2 to the field value and take the natural logarithm.
square: Square the field value (multiply it by itself).
sqrt: Take the square root of the field value.
reciprocal: Reciprocate the field value, same as 1/x where x is the field’s value.
Generates scores that are uniformly distributed from 0 up to but not including 1.
In case you want scores to be reproducible, it is possible to provide a seed and field.
fieldstring
seednumber | string
script_scoreobject
Enables you to wrap another query and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression.
scriptstringrequired
A script that computes a score.
max_boostnumber
Restricts the new score to not exceed the provided limit.
min_scorenumber
Excludes documents that do not meet the provided score threshold.
queryQuery
A query that determines the documents for which a new score is computed.
score_modeenum · default: multiply
Specifies how the computed scores are combined
Supported values include:
multiply: Scores are multiplied.
sum: Scores are summed.
avg: Scores are averaged.
first: The first function that has a matching filter is applied.
max: Maximum score is used.
min: Minimum score is used.
Values:multiplysumavgfirstmaxmin
fuzzymapstring to object · min properties: 1 · max properties: 1
Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
max_expansionsnumber · default: 50
Maximum number of variations created.
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged when creating expansions.
rewritestring · default: constant_score
Number of beginning characters left unchanged when creating expansions.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example ab to ba).
fuzzinessnumber | string
Maximum edit distance allowed for matching.
valueboolean | number | stringrequired
Term you wish to find in the provided field.
geo_bounding_boxobject
Matches geo_point and geo_shape values that intersect a bounding box.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
typeenum
Values:memoryindexed
validation_methodenum · default: 'strict'
Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude.
Set to COERCE to also try to infer correct latitude or longitude.
Supported values include:
coerce: Accept geo points with invalid latitude or longitude and additionally try and infer correct coordinates.
ignore_malformed: Accept geo points with invalid latitude or longitude.
strict
Values:coerceignore_malformedstrict
ignore_unmappedboolean · default: false
Set to true to ignore an unmapped field and not match any documents for this query.
Set to false to throw an exception if the field is not mapped.
geo_distanceobject
Matches geo_point and geo_shape values within a given distance of a geopoint.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distancestringrequired
The radius of the circle centred on the specified location.
Points which fall into this circle are considered to be matches.
distance_typeenum · default: 'arc'
How to compute the distance.
Set to plane for a faster calculation that's inaccurate on long distances and close to the poles.
Supported values include:
arc: The arc calculation is the most accurate.
plane: The plane calculation is faster but less accurate.
Values:arcplane
validation_methodenum · default: 'strict'
Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude.
Set to COERCE to also try to infer correct latitude or longitude.
Supported values include:
coerce: Accept geo points with invalid latitude or longitude and additionally try and infer correct coordinates.
ignore_malformed: Accept geo points with invalid latitude or longitude.
strict
Values:coerceignore_malformedstrict
ignore_unmappedboolean · default: false
Set to true to ignore an unmapped field and not match any documents for this query.
Set to false to throw an exception if the field is not mapped.
geo_gridmapstring to object · min properties: 1 · max properties: 1
Matches geo_point and geo_shape values that intersect a grid cell from a GeoGrid aggregation.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
geotilestring
geohashstring
geohexstring
geo_polygonobject
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
validation_methodenum · default: 'strict'
Supported values include:
coerce: Accept geo points with invalid latitude or longitude and additionally try and infer correct coordinates.
ignore_malformed: Accept geo points with invalid latitude or longitude.
strict
Values:coerceignore_malformedstrict
ignore_unmappedboolean
geo_shapeobject
Filter documents indexed using either the geo_shape or the geo_point type.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
ignore_unmappedboolean · default: false
Set to true to ignore an unmapped field and not match any documents for this query.
Set to false to throw an exception if the field is not mapped.
has_childobject
Returns parent documents whose joined child documents match a provided query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
ignore_unmappedboolean · default: false
Indicates whether to ignore an unmapped type and not return any documents instead of an error.
inner_hitsobject
If defined, each search hit will contain inner hits.
namestring
The name for the particular inner hit definition in the response.
Useful when a search request contains multiple inner hits.
sizenumber · default: 3
The maximum number of hits to return per inner_hits.
fromnumber · default: 0
Inner hit starting document offset.
collapseobject
fieldstringrequired
The field to collapse the result set on
inner_hitsuniononeOf
The number of inner hits and their sort order
objectorobject[]
max_concurrent_group_searchesnumber
The number of concurrent requests allowed to retrieve the inner_hits per group
docvalue_fieldsobject[]
fieldstringrequired
A wildcard pattern. The request returns values for field names matching this pattern.
formatstring
The format in which the values are returned.
include_unmappedboolean
explainboolean
highlightobject
typeunionanyOf
Supported values include:
plain: The plain highlighter uses the standard Lucene highlighter
fvh: The fvh highlighter uses the Lucene Fast Vector highlighter.
unified: The unified highlighter uses the Lucene Unified Highlighter.
Values:plainfvhunified
boundary_charsstring · default: .,!? \t\n
A string that contains each boundary character.
boundary_max_scannumber · default: 20
How far to scan for boundary characters.
boundary_scannerenum
Specifies how to break the highlighted fragments: chars, sentence, or word.
Only valid for the unified and fvh highlighters.
Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter.
Supported values include:
chars: Use the characters specified by boundary_chars as highlighting boundaries.
The boundary_max_scan setting controls how far to scan for boundary characters.
Only valid for the fvh highlighter.
sentence: Break highlighted fragments at the next sentence boundary, as determined by Java’s BreakIterator.
You can specify the locale to use with boundary_scanner_locale.
When used with the unified highlighter, the sentence scanner splits sentences bigger than fragment_size at the first word boundary next to fragment_size.
You can set fragment_size to 0 to never split any sentence.
word: Break highlighted fragments at the next word boundary, as determined by Java’s BreakIterator.
You can specify the locale to use with boundary_scanner_locale.
Controls which locale is used to search for sentence and word boundaries.
This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP".
force_sourceboolean
fragmenterenum · default: span
Specifies how text should be broken up in highlight snippets: simple or span.
Only valid for the plain highlighter.
Values:simplespan
fragment_sizenumber · default: 100
The size of the highlighted fragment in characters.
highlight_filterboolean
highlight_queryQuery
Highlight matches for a query other than the search query.
This is especially useful if you use a rescore query because those are not taken into account by highlighting by default.
max_fragment_lengthnumber
max_analyzed_offsetnumber
If set to a non-negative value, highlighting stops at this defined maximum limit.
The rest of the text is not processed, thus not highlighted and no error is returned
The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting.
no_match_sizenumber · default: 0
The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.
number_of_fragmentsnumber · default: 5
The maximum number of fragments to return.
If the number of fragments is set to 0, no fragments are returned.
Instead, the entire field contents are highlighted and returned.
This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required.
If number_of_fragments is 0, fragment_size is ignored.
optionsmapstring to object
orderenum · default: none
Sorts highlighted fragments by score when set to score.
By default, fragments will be output in the order they appear in the field (order: none).
Setting this option to score will output the most relevant fragments first.
Each highlighter applies its own logic to compute relevancy scores.
Values:score
phrase_limitnumber · default: 256
Controls the number of matching phrases in a document that are considered.
Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory.
When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory.
Only supported by the fvh highlighter.
post_tagsstring[]
Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text.
By default, highlighted text is wrapped in <em> and </em> tags.
pre_tagsstring[]
Use in conjunction with post_tags to define the HTML tags to use for the highlighted text.
By default, highlighted text is wrapped in <em> and </em> tags.
require_field_matchboolean · default: true
By default, only fields that contains a query match are highlighted.
Set to false to highlight all fields.
tags_schemaenum
Set to styled to use the built-in tag schema.
Values:styled
encoderenum
Values:defaulthtml
fieldsuniononeOfrequired
map string to objector[] map string to object
ignore_unmappedboolean
script_fieldsmapstring to object
<string>object
scriptstringrequired
ignore_failureboolean
seq_no_primary_termboolean
fieldstring[]
fieldsobject[]
fieldstringrequired
A wildcard pattern. The request returns values for field names matching this pattern.
formatstring
The format in which the values are returned.
include_unmappedboolean
sortuniononeOf
How the inner hits should be sorted per inner_hits.
By default, inner hits are sorted by score.
A value or an array; each item is one of:
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
_scoreobject
orderenum
Supported values include:
asc: Ascending (smallest to largest)
desc: Descending (largest to smallest)
Values:ascdesc
_docobject
orderenum
Supported values include:
asc: Ascending (smallest to largest)
desc: Descending (largest to smallest)
Values:ascdesc
_geo_distanceobject
modeenum
Values:minmaxsumavgmedian
distance_typeenum
Supported values include:
arc: The arc calculation is the most accurate.
plane: The plane calculation is faster but less accurate.
If true, vector fields are excluded from the returned source.
This option takes precedence over includes: any vector field will
remain excluded even if it matches an includes rule.
excludesuniononeOf
A list of fields to exclude from the returned source.
One of:string[]orstring
includesuniononeOf
A list of fields to include in the returned source.
One of:string[]orstring
stored_fieldsuniononeOf
One of:string[]orstring
track_scoresboolean · default: false
versionboolean
max_childrennumber
Maximum number of child documents that match the query allowed for a returned parent document.
If the parent document exceeds this limit, it is excluded from the search results.
min_childrennumber
Minimum number of child documents that match the query required to match the query for a returned parent document.
If the parent document does not meet this limit, it is excluded from the search results.
queryQueryrequired
Query you wish to run on child documents of the type field.
If a child document matches the search, the query returns the parent document.
score_modeenum · default: 'none'
Indicates how scores for matching child documents affect the root parent document’s relevance score.
Values:noneavgsummaxmin
typestringrequired
Name of the child relationship mapped for the join field.
has_parentobject
Returns child documents whose joined parent document matches a provided query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
ignore_unmappedboolean · default: false
Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error.
You can use this parameter to query multiple indices that may not contain the parent_type.
inner_hitsobject
If defined, each search hit will contain inner hits.
Name of the parent relationship mapped for the join field.
queryQueryrequired
Query you wish to run on parent documents of the parent_type field.
If a parent document matches the search, the query returns its child documents.
scoreboolean · default: false
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.
idsobject
Returns documents based on their IDs.
This query uses document IDs stored in the _id field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valuesuniononeOf
An array of document IDs.
One of:string[]orstring
intervalsmapstring to object · min properties: 1 · max properties: 1
Returns documents based on the order and proximity of matching terms.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
all_ofobject
Returns matches that span a combination of other rules.
intervalsobject[]required
An array of rules to combine. All rules must produce a match in a document for the overall source to match.
all_ofobject
Returns matches that span a combination of other rules.
Script used to return matching documents.
This script must return a boolean value: true or false.
fuzzyobject
Matches analyzed text.
analyzerstring
Analyzer used to normalize the term.
fuzzinessnumber | string · default: auto
Maximum edit distance allowed for matching.
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
matchobject
Matches analyzed text.
analyzerstring
Analyzer used to analyze terms in the query.
max_gapsnumber · default: -1
Maximum number of positions between the matching terms.
Terms further apart than this are not considered matches.
orderedboolean · default: false
If true, matching terms must appear in their specified order.
querystringrequired
Text you wish to find in the provided field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
filterobject
An optional interval filter.
afterobject
Query used to return intervals that follow an interval from the filter rule.
Script used to return matching documents.
This script must return a boolean value: true or false.
prefixobject
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
max_gapsnumber · default: -1
Maximum number of positions between the matching terms.
Intervals produced by the rules further apart than this are not considered matches.
orderedboolean · default: false
If true, intervals produced by the rules should appear in the order in which they are specified.
filterobject
Rule used to filter returned intervals.
afterobject
Query used to return intervals that follow an interval from the filter rule.
all_ofobject
Returns matches that span a combination of other rules.
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
matchobject
Matches analyzed text.
analyzerstring
Analyzer used to analyze terms in the query.
max_gapsnumber · default: -1
Maximum number of positions between the matching terms.
Terms further apart than this are not considered matches.
orderedboolean · default: false
If true, matching terms must appear in their specified order.
querystringrequired
Text you wish to find in the provided field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
beforeobject
Query used to return intervals that occur before an interval from the filter rule.
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
filterobject
Rule used to filter returned intervals.
afterobject
Query used to return intervals that follow an interval from the filter rule.
all_ofobject
Returns matches that span a combination of other rules.
intervalsobject[]required
An array of rules to combine. All rules must produce a match in a document for the overall source to match.
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
matchobject
Matches analyzed text.
analyzerstring
Analyzer used to analyze terms in the query.
max_gapsnumber · default: -1
Maximum number of positions between the matching terms.
Terms further apart than this are not considered matches.
orderedboolean · default: false
If true, matching terms must appear in their specified order.
querystringrequired
Text you wish to find in the provided field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
beforeobject
Query used to return intervals that occur before an interval from the filter rule.
Script used to return matching documents.
This script must return a boolean value: true or false.
fuzzyobject
Matches terms that are similar to the provided term, within an edit distance defined by fuzziness.
analyzerstring
Analyzer used to normalize the term.
fuzzinessnumber | string · default: auto
Maximum edit distance allowed for matching.
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
matchobject
Matches analyzed text.
analyzerstring
Analyzer used to analyze terms in the query.
max_gapsnumber · default: -1
Maximum number of positions between the matching terms.
Terms further apart than this are not considered matches.
orderedboolean · default: false
If true, matching terms must appear in their specified order.
querystringrequired
Text you wish to find in the provided field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
filterobject
An optional interval filter.
afterobject
Query used to return intervals that follow an interval from the filter rule.
all_ofobject
Returns matches that span a combination of other rules.
intervalsobject[]required
An array of rules to combine. All rules must produce a match in a document for the overall source to match.
Number of beginning characters left unchanged when creating expansions.
termstringrequired
The term to match.
transpositionsboolean · default: true
Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba).
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field, unless analyzer is specified separately.
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
beforeobject
Query used to return intervals that occur before an interval from the filter rule.
Script used to return matching documents.
This script must return a boolean value: true or false.
prefixobject
Matches terms that start with a specified set of characters.
analyzerstring
Analyzer used to analyze the prefix.
prefixstringrequired
Beginning characters of terms you wish to find in the top-level field.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
rangeobject
analyzerstring
Analyzer used to analyze the prefix.
gtestring
Lower term, either gte or gt must be provided.
gtstring
Lower term, either gte or gt must be provided.
ltestring
Upper term, either lte or lt must be provided.
ltstring
Upper term, either lte or lt must be provided.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
regexpobject
analyzerstring
Analyzer used to analyze the prefix.
patternstringrequired
Regex pattern.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately.
wildcardobject
Matches terms using a wildcard pattern.
analyzerstring
Analyzer used to analyze the pattern.
Defaults to the top-level field's analyzer.
patternstringrequired
Wildcard pattern used to find matching terms.
use_fieldstring
If specified, match intervals from this field rather than the top-level field.
The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately.
knnobject
Finds the k nearest vectors to a query vector, as measured by a similarity
metric. knn query finds nearest vectors through approximate search on indexed
dense_vectors.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
The name of the vector field to search against
query_vectoruniononeOf
The query vector
One of:number[]orstring
query_vector_builderobject
The query vector builder. You must provide a query_vector_builder or query_vector, but not both.
The number of nearest neighbor candidates to consider per shard
visit_percentagenumber
The percentage of vectors to explore per shard while doing knn search with bbq_disk
knumber
The final number of nearest neighbors to return as top hits
filteruniononeOf
Filters for the kNN search query
QueryorQuery[]
similaritynumber
The minimum similarity for a vector to be considered a match
rescore_vectorobject
Apply oversampling and rescoring to quantized vectors
oversamplenumberrequired
Applies the specified oversample factor to k on the approximate kNN search
kqlobject
Returns documents matching a provided Kibana Query Language (KQL) expression.
The expression is parsed and rewritten into standard Query DSL.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
case_insensitiveboolean · default: false
If true, performs case-insensitive matching for field names and keyword or text terms.
default_fieldstring
Default field, or field pattern with wildcards, to target when a bare term does not specify a field.
Defaults to the index.query.default_field index setting, which has a default value of *.
querystringrequired
The KQL expression to parse.
time_zonestring
Coordinated Universal Time (UTC) offset or IANA time zone used to interpret date literals in the expression.
matchmapstring to object · min properties: 1 · max properties: 1
Returns documents that match a provided text, number, date or boolean value.
The provided text is analyzed before matching.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert the text in the query value into tokens.
If true, match phrase queries are automatically created for multi-term synonyms.
cutoff_frequencynumber
fuzzinessnumber | string
Maximum edit distance allowed for matching.
fuzzy_rewritestring
Method used to rewrite the query.
fuzzy_transpositionsboolean · default: true
If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba).
lenientboolean · default: false
If true, format-based errors, such as providing a text query value for a numeric field, are ignored.
max_expansionsnumber · default: 50
Maximum number of terms to which the query will expand.
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
operatorenum · default: 'or'
Boolean logic used to interpret text in the query value.
Values:andANDorOR
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged for fuzzy matching.
queryboolean | number | stringrequired
Text, number, boolean value or date you wish to find in the provided field.
zero_terms_queryenum · default: 'none'
Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter.
Supported values include:
all: Returns all documents, similar to a match_all query.
none: No documents are returned if the analyzer removes all tokens.
Values:allnone
match_allobject
Matches all documents, giving them all a _score of 1.0.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
match_bool_prefixmapstring to object · min properties: 1 · max properties: 1
Analyzes its input and constructs a bool query from the terms.
Each term except the last is used in a term query.
The last term is used in a prefix query.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert the text in the query value into tokens.
fuzzinessnumber | string
Maximum edit distance allowed for matching.
Can be applied to the term subqueries constructed for all terms but the final term.
fuzzy_rewritestring
Method used to rewrite the query.
Can be applied to the term subqueries constructed for all terms but the final term.
fuzzy_transpositionsboolean · default: true
If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba).
Can be applied to the term subqueries constructed for all terms but the final term.
max_expansionsnumber · default: 50
Maximum number of terms to which the query will expand.
Can be applied to the term subqueries constructed for all terms but the final term.
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
Applied to the constructed bool query.
operatorenum · default: 'or'
Boolean logic used to interpret text in the query value.
Applied to the constructed bool query.
Values:andANDorOR
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged for fuzzy matching.
Can be applied to the term subqueries constructed for all terms but the final term.
querystringrequired
Terms you wish to find in the provided field.
The last term is used in a prefix query.
match_noneobject
Matches no documents.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
match_phrasemapstring to object · min properties: 1 · max properties: 1
Analyzes the text and creates a phrase query out of the analyzed text.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert the text in the query value into tokens.
querystringrequired
Query terms that are analyzed and turned into a phrase query.
slopnumber · default: 0
Maximum number of positions allowed between matching tokens.
zero_terms_queryenum · default: 'none'
Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter.
Supported values include:
all: Returns all documents, similar to a match_all query.
none: No documents are returned if the analyzer removes all tokens.
Values:allnone
match_phrase_prefixmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain the words of a provided text, in the same order as provided.
The last term of the provided text is treated as a prefix, matching any words that begin with that term.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert text in the query value into tokens.
max_expansionsnumber · default: 50
Maximum number of terms to which the last provided term of the query value will expand.
querystringrequired
Text you wish to find in the provided field.
slopnumber · default: 0
Maximum number of positions allowed between matching tokens.
zero_terms_queryenum · default: none
Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter.
Supported values include:
all: Returns all documents, similar to a match_all query.
none: No documents are returned if the analyzer removes all tokens.
Values:allnone
more_like_thisobject
Returns documents that are "like" a given set of documents.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
The analyzer that is used to analyze the free form text.
Defaults to the analyzer associated with the first field in fields.
boost_termsnumber · default: 0
Each term in the formed query could be further boosted by their tf-idf score.
This sets the boost factor to use when using this feature.
Defaults to deactivated (0).
fail_on_unsupported_fieldboolean · default: true
Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text or keyword).
fieldsstring[]
A list of fields to fetch and analyze the text from.
Defaults to the index.query.default_field index setting, which has a default value of *.
includeboolean · default: false
Specifies whether the input documents should also be included in the search results returned.
likeuniononeOfrequired
Specifies free form text and/or a single or multiple documents for which you want to find similar documents.
A value or an array; each item is one of:
docobject
A document not present in the index.
fieldsstring[]
_idstring
ID of a document.
_indexstring
Index of a document.
per_field_analyzermapstring to string
Overrides the default analyzer.
routinguniononeOf
One of:string[]orstring
versionnumber
version_typeenum · default: 'internal'
Supported values include:
internal: Use internal versioning that starts at 1 and increments with each update or delete.
external: Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.
external_gte: Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document.
NOTE: The external_gte version type is meant for special use cases and should be used with care.
If used incorrectly, it can result in loss of data.
Values:internalexternalexternal_gte
max_doc_freqnumber
The maximum document frequency above which the terms are ignored from the input document.
max_query_termsnumber · default: 25
The maximum number of query terms that can be selected.
max_word_lengthnumber · default: 0
The maximum word length above which the terms are ignored.
Defaults to unbounded (0).
min_doc_freqnumber · default: 5
The minimum document frequency below which the terms are ignored from the input document.
minimum_should_matchnumber | string
After the disjunctive query has been formed, this parameter controls the number of terms that must match.
min_term_freqnumber · default: 2
The minimum term frequency below which the terms are ignored from the input document.
min_word_lengthnumber · default: 0
The minimum word length below which the terms are ignored.
routingstring
stop_wordsuniononeOf
An array of stop words.
Any word in this set is ignored.
Used in combination with like to exclude documents that match a set of terms.
A value or an array; each item is one of:
docobject
A document not present in the index.
fieldsstring[]
_idstring
ID of a document.
_indexstring
Index of a document.
per_field_analyzermapstring to string
Overrides the default analyzer.
routinguniononeOf
One of:string[]orstring
versionnumber
version_typeenum · default: 'internal'
Supported values include:
internal: Use internal versioning that starts at 1 and increments with each update or delete.
external: Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.
external_gte: Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document.
NOTE: The external_gte version type is meant for special use cases and should be used with care.
If used incorrectly, it can result in loss of data.
Values:internalexternalexternal_gte
versionnumber
version_typeenum · default: 'internal'
Supported values include:
internal: Use internal versioning that starts at 1 and increments with each update or delete.
external: Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.
external_gte: Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document.
NOTE: The external_gte version type is meant for special use cases and should be used with care.
If used incorrectly, it can result in loss of data.
Values:internalexternalexternal_gte
multi_matchobject
Enables you to search for a provided text, number, date or boolean value across multiple fields.
The provided text is analyzed before matching.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert the text in the query value into tokens.
If true, match phrase queries are automatically created for multi-term synonyms.
cutoff_frequencynumber
fieldsuniononeOf
The fields to be queried.
Defaults to the index.query.default_field index settings, which in turn defaults to *.
One of:string[]orstring
fuzzinessnumber | string
Maximum edit distance allowed for matching.
fuzzy_rewritestring
Method used to rewrite the query.
fuzzy_transpositionsboolean · default: true
If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba).
Can be applied to the term subqueries constructed for all terms but the final term.
lenientboolean · default: false
If true, format-based errors, such as providing a text query value for a numeric field, are ignored.
max_expansionsnumber · default: 50
Maximum number of terms to which the query will expand.
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
operatorenum · default: 'or'
Boolean logic used to interpret text in the query value.
Values:andANDorOR
prefix_lengthnumber · default: 0
Number of beginning characters left unchanged for fuzzy matching.
querystringrequired
Text, number, boolean value or date you wish to find in the provided field.
slopnumber · default: 0
Maximum number of positions allowed between matching tokens.
tie_breakernumber · default: 0
Determines how scores for each per-term blended query and scores across groups are combined.
typeenum · default: 'best_fields'
How the multi_match query is executed internally.
Supported values include:
best_fields: Finds documents that match any field, but uses the _score from the best field.
most_fields: Finds documents that match any field and combines the _score from each field.
cross_fields: Treats fields with the same analyzer as though they were one big field.
Looks for each word in any field.
phrase: Runs a match_phrase query on each field and uses the _score from the best field.
phrase_prefix: Runs a match_phrase_prefix query on each field and uses the _score from the best field.
bool_prefix: Creates a match_bool_prefix query on each field and combines the _score from each field.
Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter.
Supported values include:
all: Returns all documents, similar to a match_all query.
none: No documents are returned if the analyzer removes all tokens.
Values:allnone
nestedobject
Wraps another query to search nested fields.
If an object matches the search, the nested query returns the root parent document.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
ignore_unmappedboolean · default: false
Indicates whether to ignore an unmapped path and not return any documents instead of an error.
inner_hitsobject
If defined, each search hit will contain inner hits.
Query you wish to run on nested objects in the path.
score_modeenum · default: 'avg'
How scores for matching child objects affect the root parent document’s relevance score.
Values:noneavgsummaxmin
parent_idobject
Returns child documents joined to a specific parent document.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
idstring
ID of the parent document.
ignore_unmappedboolean · default: false
Indicates whether to ignore an unmapped type and not return any documents instead of an error.
typestring
Name of the child relationship mapped for the join field.
percolateobject
Matches queries stored in an index.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
documentobject
The source of the document being percolated.
documentsobject[]
An array of sources of the documents being percolated.
fieldstringrequired
Field that holds the indexed queries. The field must use the percolator mapping type.
idstring
The ID of a stored document to percolate.
indexstring
The index of a stored document to percolate.
namestring
The suffix used for the _percolator_document_slot field when multiple percolate queries are specified.
preferencestring
Preference used to fetch document to percolate.
routingstring
Routing used to fetch document to percolate.
versionnumber
The expected version of a stored document to percolate.
pinnedobject
Promotes selected documents to rank higher than those matching a given query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
organicQueryrequired
Any choice of query used to rank documents which will be ranked below the "pinned" documents.
idsstring[]
Document IDs listed in the order they are to appear in results.
Required if docs is not specified.
docsobject[]
Documents listed in the order they are to appear in results.
Required if ids is not specified.
_idstringrequired
The unique document ID.
_indexstring
The index that contains the document.
prefixmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain a specific prefix in a provided field.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
rewritestring
Method used to rewrite the query.
valuestringrequired
Beginning characters of terms you wish to find in the provided field.
case_insensitiveboolean · default: false
Allows case insensitive matching of the value with the indexed field values when set to true.
Default is false which means the case sensitivity of matching depends on the underlying field’s mapping.
query_stringobject
Returns documents based on a provided query string, using a parser with a strict syntax.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
allow_leading_wildcardboolean · default: true
If true, the wildcard characters * and ? are allowed as the first character of the query string.
analyzerstring
Analyzer used to convert text in the query string into tokens.
analyze_wildcardboolean · default: false
If true, the query attempts to analyze wildcard terms in the query string.
If true, match phrase queries are automatically created for multi-term synonyms.
default_fieldstring
Default field to search if no field is provided in the query string.
Supports wildcards (*).
Defaults to the index.query.default_field index setting, which has a default value of *.
default_operatorenum · default: 'or'
Default boolean logic used to interpret text in the query string if no operators are specified.
Values:andANDorOR
enable_position_incrementsboolean · default: true
If true, enable position increments in queries constructed from a query_string search.
escapeboolean · default: false
fieldsstring[]
Array of fields to search. Supports wildcards (*).
fuzzinessnumber | string
Maximum edit distance allowed for fuzzy matching.
fuzzy_max_expansionsnumber · default: 50
Maximum number of terms to which the query expands for fuzzy matching.
fuzzy_prefix_lengthnumber · default: 0
Number of beginning characters left unchanged for fuzzy matching.
fuzzy_rewritestring
Method used to rewrite the query.
fuzzy_transpositionsboolean · default: true
If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba).
lenientboolean · default: false
If true, format-based errors, such as providing a text value for a numeric field, are ignored.
max_determinized_statesnumber · default: 10000
Maximum number of automaton states required for the query.
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
phrase_slopnumber · default: 0
Maximum number of positions allowed between matching tokens for phrases.
querystringrequired
Query string you wish to parse and use for search.
quote_analyzerstring
Analyzer used to convert quoted text in the query string into tokens.
For quoted text, this parameter overrides the analyzer specified in the analyzer parameter.
quote_field_suffixstring
Suffix appended to quoted text in the query string.
You can use this suffix to use a different analysis method for exact matches.
rewritestring
Method used to rewrite the query.
tie_breakernumber
How to combine the queries generated from the individual search terms in the resulting dis_max query.
time_zonestring
Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC.
typeenum · default: 'best_fields'
Determines how the query matches and scores documents.
Supported values include:
best_fields: Finds documents that match any field, but uses the _score from the best field.
most_fields: Finds documents that match any field and combines the _score from each field.
cross_fields: Treats fields with the same analyzer as though they were one big field.
Looks for each word in any field.
phrase: Runs a match_phrase query on each field and uses the _score from the best field.
phrase_prefix: Runs a match_phrase_prefix query on each field and uses the _score from the best field.
bool_prefix: Creates a match_bool_prefix query on each field and combines the _score from each field.
rangemapstring to oneOf · min properties: 1 · max properties: 1
Returns documents that contain terms within a provided range.
<string>uniononeOf
One of:
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
relationenum · default: intersects
Indicates how the range query matches values for range fields.
Supported values include:
within: Matches documents with a range field value entirely within the query’s range.
contains: Matches documents with a range field value that entirely contains the query’s range.
intersects: Matches documents with a range field value that intersects the query’s range.
Values:withincontainsintersects
gtobject
Greater than.
gteobject
Greater than or equal to.
ltobject
Less than.
lteobject
Less than or equal to.
formatstring
Date format used to convert date values in the query.
time_zonestring
Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
relationenum · default: intersects
Indicates how the range query matches values for range fields.
Supported values include:
within: Matches documents with a range field value entirely within the query’s range.
contains: Matches documents with a range field value that entirely contains the query’s range.
intersects: Matches documents with a range field value that intersects the query’s range.
Values:withincontainsintersects
gtstring
Greater than.
gtestring
Greater than or equal to.
ltstring
Less than.
ltestring
Less than or equal to.
formatstring
Date format used to convert date values in the query.
time_zonestring
Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
relationenum · default: intersects
Indicates how the range query matches values for range fields.
Supported values include:
within: Matches documents with a range field value entirely within the query’s range.
contains: Matches documents with a range field value that entirely contains the query’s range.
intersects: Matches documents with a range field value that intersects the query’s range.
Values:withincontainsintersects
gtnumber
Greater than.
gtenumber
Greater than or equal to.
ltnumber
Less than.
ltenumber
Less than or equal to.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
relationenum · default: intersects
Indicates how the range query matches values for range fields.
Supported values include:
within: Matches documents with a range field value entirely within the query’s range.
contains: Matches documents with a range field value that entirely contains the query’s range.
intersects: Matches documents with a range field value that intersects the query’s range.
Values:withincontainsintersects
gtnumber
Greater than.
gtenumber
Greater than or equal to.
ltnumber
Less than.
ltenumber
Less than or equal to.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
relationenum · default: intersects
Indicates how the range query matches values for range fields.
Supported values include:
within: Matches documents with a range field value entirely within the query’s range.
contains: Matches documents with a range field value that entirely contains the query’s range.
intersects: Matches documents with a range field value that intersects the query’s range.
Values:withincontainsintersects
gtstring
Greater than.
gtestring
Greater than or equal to.
ltstring
Less than.
ltestring
Less than or equal to.
rank_featureobject
Boosts the relevance score of documents based on the numeric value of a rank_feature or rank_features field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
rank_feature or rank_features field used to boost relevance scores.
saturationobject
Saturation function used to boost relevance scores based on the value of the rank feature field.
pivotnumber
Configurable pivot value so that the result will be less than 0.5.
logobject
Logarithmic function used to boost relevance scores based on the value of the rank feature field.
scaling_factornumberrequired
Configurable scaling factor.
linearobject
Linear function used to boost relevance scores based on the value of the rank feature field.
sigmoidobject
Sigmoid function used to boost relevance scores based on the value of the rank feature field.
pivotnumberrequired
Configurable pivot value so that the result will be less than 0.5.
exponentnumberrequired
Configurable Exponent.
regexpmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain terms matching a regular expression.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
case_insensitiveboolean · default: false
Allows case insensitive matching of the regular expression value with the indexed field values when set to true.
When false, case sensitivity of matching depends on the underlying field’s mapping.
flagsstring
Enables optional operators for the regular expression.
max_determinized_statesnumber · default: 10000
Maximum number of automaton states required for the query.
rewritestring
Method used to rewrite the query.
valuestringrequired
Regular expression for terms you wish to find in the provided field.
ruleobject
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
organicQueryrequired
ruleset_idsunionstring | string[]
ruleset_idstring
match_criteriaobjectrequired
scriptobject
Filters documents based on a provided script.
The script query is typically used in a filter context.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
scriptstringrequired
Contains a script to run as a query.
This script must return a boolean value, true or false.
script_scoreobject
Uses a script to provide a custom score for returned documents.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
min_scorenumber
Documents with a score lower than this floating point number are excluded from the search results.
queryQueryrequired
Query used to return documents.
scriptstringrequired
Script used to compute the score of documents returned by the query.
Important: final relevance scores from the script_score query cannot be negative.
semanticobject
A semantic query to semantic_text field types
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
The field to query, which must be a semantic_text field type
querystringrequired
The query text
shapeobject
Queries documents that contain fields indexed using the shape type.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
ignore_unmappedboolean
When set to true the query ignores an unmapped field and will not match any documents.
simple_query_stringobject
Returns documents based on a provided query string, using a parser with a limited but fault-tolerant syntax.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
analyzerstring
Analyzer used to convert text in the query string into tokens.
analyze_wildcardboolean · default: false
If true, the query attempts to analyze wildcard terms in the query string.
If true, the parser creates a match_phrase query for each multi-position token.
default_operatorenum · default: 'or'
Default boolean logic used to interpret text in the query string if no operators are specified.
Values:andANDorOR
fieldsstring[]
Array of fields you wish to search.
Accepts wildcard expressions.
You also can boost relevance scores for matches to particular fields using a caret (^) notation.
Defaults to the index.query.default_field index setting, which has a default value of *.
flagsunion · default: ALL
List of enabled operators for the simple query string syntax.
Maximum number of terms to which the query expands for fuzzy matching.
fuzzy_prefix_lengthnumber · default: 0
Number of beginning characters left unchanged for fuzzy matching.
fuzzy_transpositionsboolean
If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba).
lenientboolean · default: false
If true, format-based errors, such as providing a text value for a numeric field, are ignored.
minimum_should_matchnumber | string
Minimum number of clauses that must match for a document to be returned.
querystringrequired
Query string in the simple query string syntax you wish to parse and use for search.
quote_field_suffixstring
Suffix appended to quoted text in the query string.
span_containingobject
Returns matches which enclose another span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
Wrapper to allow span queries to participate in composite single-field span queries by lying about their search field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
queryobjectrequired
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
matchobjectrequired
Can be any other span type query.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
Allows you to wrap a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query) as a span query, so it can be nested.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Matches spans which are near one another.
You can specify slop, the maximum number of intervening unmatched positions, as well as whether matches are required to be in-order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
clausesobject[]required
Array of one or more other span type queries.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Removes matches which overlap with another span query or which are within x tokens before (controlled by the parameter pre) or y tokens after (controlled by the parameter post) another span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Matches the union of its span clauses.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
clausesobject[]required
Array of one or more other span type queries.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
span_termmapstring to object · min properties: 1 · max properties: 1
Matches spans containing a term.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
Returns matches which are enclosed inside another span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from little that are enclosed within big are returned.
span_containingobject
Accepts a list of span queries, but only returns those spans which also match a second span query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
bigobjectrequired
Can be any span query.
Matching spans from big that contain matches from little are returned.
Allows queries like span_near or span_or across different fields.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Accepts another span query whose matches must appear within the first N positions of the field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
endnumberrequired
Controls the maximum end position permitted in a match.
Wraps a term, range, prefix, wildcard, regexp, or fuzzy query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
matchQueryrequired
Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query).
span_nearobject
Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Controls whether matches are required to be in-order.
slopnumber
Controls the maximum number of intervening unmatched positions permitted.
span_notobject
Wraps another span query, and excludes any documents which match that query.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
distnumber
The number of tokens from within the include span that can’t have overlap with the exclude span.
Equivalent to setting both pre and post.
excludeobjectrequired
Span query whose matches must not overlap those returned.
The number of tokens after the include span that can’t have overlap with the exclude span.
prenumber · default: 0
The number of tokens before the include span that can’t have overlap with the exclude span.
span_orobject
Combines multiple span queries and returns documents which match any of the specified queries.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
span_termmapstring to object · min properties: 1 · max properties: 1
The equivalent of the term query but for use with other span queries.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
One of:numberorstringorboolean
span_withinobject
The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.
Using input query vectors or a natural language processing model to convert a query into a list of token-weight pairs, queries against a sparse vector field.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
fieldstringrequired
The name of the field that contains the token-weight pairs to be searched against.
This field must be a mapped sparse_vector field.
querystring
The query text you want to use for search.
If inference_id is specified, query must also be specified.
pruneboolean
Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.
If prune is true but the pruning_config is not specified, pruning will occur but default values will be used.
Default: false
pruning_configobject
Optional pruning configuration.
If enabled, this will omit non-significant tokens from the query in order to improve query performance.
This is only used if prune is set to true.
If prune is set to true but pruning_config is not specified, default values will be used.
tokens_freq_ratio_thresholdnumber · default: 5
Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
tokens_weight_thresholdnumber · default: 0.4
Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
only_score_pruned_tokensboolean · default: false
Whether to only score pruned tokens, vs only scoring kept tokens.
query_vectormapstring to number
Dictionary of precomputed sparse vectors and their associated weights.
Only one of inference_id or query_vector may be supplied in a request.
inference_idstring
The inference ID to use to convert the query text into token-weight pairs.
It must be the same inference ID that was used to create the tokens from the input text.
Only one of inference_id and query_vector is allowed.
If inference_id is specified, query must also be specified.
Only one of inference_id or query_vector may be supplied in a request.
termmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain an exact term in a provided field.
To return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
valueuniononeOfrequired
Term you wish to find in the provided field.
One of:numberorstringorboolean
case_insensitiveboolean · default: false
Allows case insensitive matching of the value with the indexed field values when set to true.
When false, the case sensitivity of matching depends on the underlying field’s mapping.
termsobject
Returns documents that contain one or more exact terms in a provided field.
To return a document, one or more terms must exactly match a field value, including whitespace and capitalization.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
terms_setmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain a minimum number of exact terms in a provided field.
To return a document, a required number of terms must exactly match the field values, including whitespace and capitalization.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
minimum_should_matchnumber | string
Specification describing number of matching terms required to return a document.
minimum_should_match_fieldstring
Numeric field containing the number of matching terms required to return a document.
minimum_should_match_scriptstring
Custom script containing the number of matching terms required to return a document.
termsuniononeOf[]required
Array of terms you wish to find in the provided field.
One of:numberorstringorboolean
text_expansionmapstring to object · min properties: 1 · max properties: 1
Uses a natural language processing model to convert the query text into a list of token-weight pairs which are then used in a query against a sparse vector or rank features field.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
model_idstringrequired
The text expansion NLP model to use
model_textstringrequired
The query text
pruning_configobject
Token pruning configurations
tokens_freq_ratio_thresholdnumber · default: 5
Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
tokens_weight_thresholdnumber · default: 0.4
Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
only_score_pruned_tokensboolean · default: false
Whether to only score pruned tokens, vs only scoring kept tokens.
weighted_tokensmapstring to object · min properties: 1 · max properties: 1
Supports returning text_expansion query results by sending in precomputed tokens with the query.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
tokensuniononeOfrequired
The tokens representing this query
One of:string to number[]orstring to number
pruning_configobject
Token pruning configurations
tokens_freq_ratio_thresholdnumber · default: 5
Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
tokens_weight_thresholdnumber · default: 0.4
Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
only_score_pruned_tokensboolean · default: false
Whether to only score pruned tokens, vs only scoring kept tokens.
wildcardmapstring to object · min properties: 1 · max properties: 1
Returns documents that contain terms matching a wildcard pattern.
<string>object
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
case_insensitiveboolean
Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying field’s mapping.
rewritestring
Method used to rewrite the query.
valuestring
Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set.
wildcardstring
Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set.
wrapperobject
A query that accepts any other query as base64 encoded string.
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
_namestring
querystringrequired
A base64 encoded query.
The binary data format can be any of JSON, YAML, CBOR or SMILE encodings
typeobject
boostnumber · default: 1
Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.