Preview a transform
Generates a preview of the results that you will get when you create a transform with the same configuration.
It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also generates a list of mappings and settings for the destination index. These values are determined based on the field types of the source index and the transform aggregations.
Query parameters
-
timeout string
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Body
-
dest object
-
description string
Free text description of the transform.
-
frequency string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
pivot object
Hide pivot attributes Show pivot attributes object
-
aggregations object
Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation, min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted average.
-
group_by object
Hide group_by attributes Show group_by attributes object
-
date_histogram object
Hide date_histogram attributes Show date_histogram attributes object
-
calendar_interval string
Values are
second
,1s
,minute
,1m
,hour
,1h
,day
,1d
,week
,1w
,month
,1M
,quarter
,1q
,year
, or1y
. -
extended_bounds object
-
hard_bounds object
-
field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
fixed_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
format string
The date format used to format
key_as_string
in the response. If noformat
is specified, the first date format specified in the field mapping is used. -
interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
min_doc_count number
Only returns buckets that have
min_doc_count
number of documents. By default, all buckets between the first bucket that matches documents and the last one are returned. -
missing string
-
offset string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. order object | array[object]
-
params object
Hide params attributes Show params attributes object
-
key object
-
script object
-
time_zone string
-
keyed boolean
Set to
true
to associate a unique string key with each bucket and return the ranges as a hash rather than an array.
-
-
geotile_grid object
Hide geotile_grid attributes Show geotile_grid attributes object
-
field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
precision number
-
shard_size number
Allows for more accurate counting of the top cells returned in the final result the aggregation. Defaults to returning
max(10,(size x number-of-shards))
buckets from each shard. -
size number
The maximum number of buckets to return.
bounds object
A geo bounding box. It can be represented in various ways:
- as 4 top/bottom/left/right coordinates
- as 2 top_left / bottom_right points
- as 2 top_right / bottom_left points
- as a WKT bounding box
-
-
histogram object
Hide histogram attributes Show histogram attributes object
-
extended_bounds object
-
hard_bounds object
-
field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
interval number
The interval for the buckets. Must be a positive decimal.
-
min_doc_count number
Only returns buckets that have
min_doc_count
number of documents. By default, the response will fill gaps in the histogram with empty buckets. -
missing number
The value to apply to documents that do not have a value. By default, documents without a value are ignored.
-
offset number
By default, the bucket keys start with 0 and then continue in even spaced steps of
interval
. The bucket boundaries can be shifted by using theoffset
option. order object | array[object]
-
script object
-
format string
-
keyed boolean
If
true
, returns buckets as a hash instead of an array, keyed by the bucket keys.
-
-
terms object
Hide terms attributes Show terms attributes object
-
collect_mode string
Values are
depth_first
orbreadth_first
. exclude string | array[string]
-
execution_hint string
Values are
map
,global_ordinals
,global_ordinals_hash
, orglobal_ordinals_low_cardinality
. -
field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
include string | array[string] | object
-
min_doc_count number
Only return values that are found in more than
min_doc_count
hits. missing string | number | boolean
-
missing_order string
Values are
first
,last
, ordefault
. -
missing_bucket boolean
-
value_type string
Coerced unmapped fields into the specified type.
order object | array[object]
-
script object
-
shard_min_doc_count number
Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the
min_doc_count
. Terms will only be considered if their local shard frequency within the set is higher than theshard_min_doc_count
. -
shard_size number
The number of candidate terms produced by each shard. By default,
shard_size
will be automatically estimated based on the number of shards and thesize
parameter. -
show_term_doc_count_error boolean
Set to
true
to return thedoc_count_error_upper_bound
, which is an upper bound to the error on thedoc_count
returned by each shard. -
size number
The number of buckets returned out of the overall terms list.
-
format string
-
-
-
source object
Hide source attributes Show source attributes object
-
query object
Hide query attributes Show query attributes object
-
bool object
Hide bool attributes Show bool attributes object
-
boost number
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.
-
_name string
filter object | array[object]
The clause (query) must appear in matching documents. However, unlike
must
, the score of the query will be ignored.minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
must object | array[object]
The clause (query) must appear in matching documents and will contribute to the score.
must_not object | array[object]
The clause (query) must not appear in the matching documents. Because scoring is ignored, a score of
0
is returned for all documents.should object | array[object]
The clause (query) should appear in the matching document.
-
-
boosting object
Hide boosting attributes Show boosting attributes object
-
boost number
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.
-
_name string
-
Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the
negative
query.
-
-
combined_fields object
Hide combined_fields attributes Show combined_fields attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
Text to search for in the provided
fields
. Thecombined_fields
query analyzes the provided text before performing a search. -
If true, match phrase queries are automatically created for multi-term synonyms.
-
operator string
Values are
or
orand
. minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
-
zero_terms_query string
Values are
none
orall
.
-
-
constant_score object
Hide constant_score attributes Show constant_score attributes object
-
dis_max object
Hide dis_max attributes Show dis_max attributes object
-
boost number
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.
-
_name string
-
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_breaker number
Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses.
-
distance_feature object
One of: Hide attributes Show attributes
-
boost number
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.
-
_name string
-
Date or point of origin used to calculate distances. If the
field
value is adate
ordate_nanos
field, theorigin
value must be a date. Date Math, such asnow-1h
, is supported. If the field value is ageo_point
field, theorigin
value must be a geopoint. -
Distance from the
origin
at which relevance scores receive half of theboost
value. If thefield
value is adate
ordate_nanos
field, thepivot
value must be a time unit, such as1h
or10d
. If thefield
value is ageo_point
field, thepivot
value must be a distance unit, such as1km
or12m
. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
Hide attributes Show attributes
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
Hide attributes Show attributes
-
boost number
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.
-
_name string
-
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
-
exists object
Hide exists attributes Show exists attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
-
function_score object
Hide function_score attributes Show function_score attributes object
-
boost number
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.
-
_name string
-
boost_mode string
Values are
multiply
,replace
,sum
,avg
,max
, ormin
. -
functions array[object]
One or more functions that compute a new score for each document returned by the query.
-
max_boost number
Restricts the new score to not exceed the provided limit.
-
min_score number
Excludes documents that do not meet the provided score threshold.
-
query object
-
score_mode string
Values are
multiply
,sum
,avg
,first
,max
, ormin
.
-
-
fuzzy object
Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.
-
geo_bounding_box object
Hide geo_bounding_box attributes Show geo_bounding_box attributes object
-
boost number
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.
-
_name string
-
type string
Values are
memory
orindexed
. -
validation_method string
Values are
coerce
,ignore_malformed
, orstrict
. -
ignore_unmapped boolean
Set to
true
to ignore an unmapped field and not match any documents for this query. Set tofalse
to throw an exception if the field is not mapped.
-
-
geo_distance object
Hide geo_distance attributes Show geo_distance attributes object
-
boost number
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.
-
_name string
-
distance_type string
Values are
arc
orplane
. -
validation_method string
Values are
coerce
,ignore_malformed
, orstrict
. -
ignore_unmapped boolean
Set to
true
to ignore an unmapped field and not match any documents for this query. Set tofalse
to throw an exception if the field is not mapped.
-
-
geo_polygon object
Hide geo_polygon attributes Show geo_polygon attributes object
-
boost number
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.
-
_name string
-
validation_method string
Values are
coerce
,ignore_malformed
, orstrict
. -
ignore_unmapped boolean
-
-
geo_shape object
Hide geo_shape attributes Show geo_shape attributes object
-
boost number
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.
-
_name string
-
ignore_unmapped boolean
Set to
true
to ignore an unmapped field and not match any documents for this query. Set tofalse
to throw an exception if the field is not mapped.
-
-
has_child object
Hide has_child attributes Show has_child attributes object
-
boost number
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.
-
_name string
-
ignore_unmapped boolean
Indicates whether to ignore an unmapped
type
and not return any documents instead of an error. -
inner_hits object
Hide inner_hits attributes Show inner_hits attributes object
-
name string
-
size number
The maximum number of hits to return per
inner_hits
. -
from number
Inner hit starting document offset.
-
collapse object
Hide collapse attributes Show collapse attributes object
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
The number of concurrent requests allowed to retrieve the inner_hits per group
-
collapse object
-
-
docvalue_fields array[object]
-
explain boolean
-
highlight object
-
ignore_unmapped boolean
-
script_fields object
-
seq_no_primary_term boolean
-
fields string | array[string]
-
sort array[string | object]
_source boolean | object
Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.
-
stored_fields string | array[string]
-
track_scores boolean
-
version boolean
-
-
max_children number
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_children number
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.
-
score_mode string
Values are
none
,avg
,sum
,max
, ormin
.
-
-
has_parent object
Hide has_parent attributes Show has_parent attributes object
-
boost number
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.
-
_name string
-
ignore_unmapped boolean
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 theparent_type
. -
inner_hits object
Hide inner_hits attributes Show inner_hits attributes object
-
name string
-
size number
The maximum number of hits to return per
inner_hits
. -
from number
Inner hit starting document offset.
-
collapse object
Hide collapse attributes Show collapse attributes object
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
The number of concurrent requests allowed to retrieve the inner_hits per group
-
collapse object
-
-
docvalue_fields array[object]
-
explain boolean
-
highlight object
-
ignore_unmapped boolean
-
script_fields object
-
seq_no_primary_term boolean
-
fields string | array[string]
-
sort array[string | object]
_source boolean | object
Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.
-
stored_fields string | array[string]
-
track_scores boolean
-
version boolean
-
-
score boolean
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.
-
-
ids object
Hide ids attributes Show ids attributes object
-
boost number
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.
-
_name string
values string | array[string]
-
-
intervals object
Returns documents based on the order and proximity of matching terms.
-
knn object
Hide knn attributes Show knn attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
query_vector array[number]
-
query_vector_builder object
Hide query_vector_builder attribute Show query_vector_builder attribute object
-
text_embedding object
Hide text_embedding attributes Show text_embedding attributes object
-
-
num_candidates number
The number of nearest neighbor candidates to consider per shard
-
k number
The final number of nearest neighbors to return as top hits
filter object | array[object]
Filters for the kNN search query
-
similarity number
The minimum similarity for a vector to be considered a match
-
-
match object
Returns documents that match a provided text, number, date or boolean value. The provided text is analyzed before matching.
-
match_all object
Hide match_all attributes Show match_all attributes object
-
match_bool_prefix object
Analyzes its input and constructs a
bool
query from the terms. Each term except the last is used in aterm
query. The last term is used in a prefix query. -
match_none object
Hide match_none attributes Show match_none attributes object
-
match_phrase object
Analyzes the text and creates a phrase query out of the analyzed text.
-
match_phrase_prefix object
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.
-
more_like_this object
Hide more_like_this attributes Show more_like_this attributes object
-
boost number
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.
-
_name string
-
analyzer string
The analyzer that is used to analyze the free form text. Defaults to the analyzer associated with the first field in fields.
-
boost_terms number
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_field boolean
Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (
text
orkeyword
). -
fields array[string]
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
include boolean
Specifies whether the input documents should also be included in the search results returned.
like string | object | array[string | object]
Specifies free form text and/or a single or multiple documents for which you want to find similar documents.
-
max_doc_freq number
The maximum document frequency above which the terms are ignored from the input document.
-
max_query_terms number
The maximum number of query terms that can be selected.
-
max_word_length number
The maximum word length above which the terms are ignored. Defaults to unbounded (
0
). -
min_doc_freq number
The minimum document frequency below which the terms are ignored from the input document.
minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
-
min_term_freq number
The minimum term frequency below which the terms are ignored from the input document.
-
min_word_length number
The minimum word length below which the terms are ignored.
-
routing string
stop_words string | array[string]
Language value, such as arabic or thai. Defaults to english. Each language value corresponds to a predefined list of stop words in Lucene. See Stop words by language for supported language values and their stop words. Also accepts an array of stop words.
unlike string | object | array[string | object]
Used in combination with
like
to exclude documents that match a set of terms.-
version number
-
version_type string
Values are
internal
,external
,external_gte
, orforce
.
-
-
multi_match object
Hide multi_match attributes Show multi_match attributes object
-
boost number
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.
-
_name string
-
analyzer string
Analyzer used to convert the text in the query value into tokens.
-
If
true
, match phrase queries are automatically created for multi-term synonyms. -
fields string | array[string]
fuzziness string | number
-
fuzzy_rewrite string
-
fuzzy_transpositions boolean
If
true
, edits for fuzzy matching include transpositions of two adjacent characters (for example,ab
toba
). Can be applied to the term subqueries constructed for all terms but the final term. -
lenient boolean
If
true
, format-based errors, such as providing a text query value for a numeric field, are ignored. -
max_expansions number
Maximum number of terms to which the query will expand.
minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
-
operator string
Values are
and
,AND
,or
, orOR
. -
prefix_length number
Number of beginning characters left unchanged for fuzzy matching.
-
Text, number, boolean value or date you wish to find in the provided field.
-
slop number
Maximum number of positions allowed between matching tokens.
-
tie_breaker number
Determines how scores for each per-term blended query and scores across groups are combined.
-
type string
Values are
best_fields
,most_fields
,cross_fields
,phrase
,phrase_prefix
, orbool_prefix
. -
zero_terms_query string
Values are
all
ornone
.
-
-
nested object
Hide nested attributes Show nested attributes object
-
boost number
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.
-
_name string
-
ignore_unmapped boolean
Indicates whether to ignore an unmapped path and not return any documents instead of an error.
-
inner_hits object
Hide inner_hits attributes Show inner_hits attributes object
-
name string
-
size number
The maximum number of hits to return per
inner_hits
. -
from number
Inner hit starting document offset.
-
collapse object
Hide collapse attributes Show collapse attributes object
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
The number of concurrent requests allowed to retrieve the inner_hits per group
-
collapse object
-
-
docvalue_fields array[object]
-
explain boolean
-
highlight object
-
ignore_unmapped boolean
-
script_fields object
-
seq_no_primary_term boolean
-
fields string | array[string]
-
sort array[string | object]
_source boolean | object
Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.
-
stored_fields string | array[string]
-
track_scores boolean
-
version boolean
-
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
score_mode string
Values are
none
,avg
,sum
,max
, ormin
.
-
-
parent_id object
Hide parent_id attributes Show parent_id attributes object
-
boost number
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.
-
_name string
-
id string
-
ignore_unmapped boolean
Indicates whether to ignore an unmapped
type
and not return any documents instead of an error. -
type string
-
-
percolate object
Hide percolate attributes Show percolate attributes object
-
boost number
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.
-
_name string
-
document object
The source of the document being percolated.
-
documents array[object]
An array of sources of the documents being percolated.
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
id string
-
index string
-
name string
The suffix used for the
_percolator_document_slot
field when multiplepercolate
queries are specified. -
preference string
Preference used to fetch document to percolate.
-
routing string
-
version number
-
-
pinned object
Hide pinned attributes Show pinned attributes object
-
boost number
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.
-
_name string
-
ids array[string]
Document IDs listed in the order they are to appear in results. Required if
docs
is not specified. -
docs array[object]
Documents listed in the order they are to appear in results. Required if
ids
is not specified.
-
-
prefix object
Returns documents that contain a specific prefix in a provided field.
-
query_string object
Hide query_string attributes Show query_string attributes object
-
boost number
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.
-
_name string
-
allow_leading_wildcard boolean
If
true
, the wildcard characters*
and?
are allowed as the first character of the query string. -
analyzer string
Analyzer used to convert text in the query string into tokens.
-
analyze_wildcard boolean
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_field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
default_operator string
Values are
and
,AND
,or
, orOR
. -
enable_position_increments boolean
If
true
, enable position increments in queries constructed from aquery_string
search. -
escape boolean
-
fields array[string]
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
fuzziness string | number
-
fuzzy_max_expansions number
Maximum number of terms to which the query expands for fuzzy matching.
-
fuzzy_prefix_length number
Number of beginning characters left unchanged for fuzzy matching.
-
fuzzy_rewrite string
-
fuzzy_transpositions boolean
If
true
, edits for fuzzy matching include transpositions of two adjacent characters (for example,ab
toba
). -
lenient boolean
If
true
, format-based errors, such as providing a text value for a numeric field, are ignored. -
max_determinized_states number
Maximum number of automaton states required for the query.
minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
-
phrase_slop number
Maximum number of positions allowed between matching tokens for phrases.
-
Query string you wish to parse and use for search.
-
quote_analyzer string
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_suffix string
Suffix appended to quoted text in the query string. You can use this suffix to use a different analysis method for exact matches.
-
rewrite string
-
tie_breaker number
How to combine the queries generated from the individual search terms in the resulting
dis_max
query. -
time_zone string
-
type string
Values are
best_fields
,most_fields
,cross_fields
,phrase
,phrase_prefix
, orbool_prefix
.
-
-
range object
Returns documents that contain terms within a provided range.
-
rank_feature object
Hide rank_feature attributes Show rank_feature attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
saturation object
Hide saturation attribute Show saturation attribute object
-
pivot number
Configurable pivot value so that the result will be less than 0.5.
-
-
log object
Hide log attribute Show log attribute object
-
Configurable scaling factor.
-
-
linear object
-
sigmoid object
-
-
regexp object
Returns documents that contain terms matching a regular expression.
-
rule object
Hide rule attributes Show rule attributes object
-
script object
Hide script attributes Show script attributes object
-
boost number
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.
-
_name string
-
Hide script attributes Show script attributes object
-
source string
The script source.
-
id string
-
params object
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Hide params attributes Show params attributes object
-
key object
-
options object
Hide options attributes Show options attributes object
-
key string
-
-
-
script_score object
Hide script_score attributes Show script_score attributes object
-
boost number
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.
-
_name string
-
min_score number
Documents with a score lower than this floating point number are excluded from the search results.
-
Hide script attributes Show script attributes object
-
source string
The script source.
-
id string
-
params object
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Hide params attributes Show params attributes object
-
key object
-
options object
Hide options attributes Show options attributes object
-
key string
-
-
-
semantic object
Hide semantic attributes Show semantic attributes object
-
boost number
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.
-
_name string
-
The field to query, which must be a semantic_text field type
-
The query text
-
-
shape object
Hide shape attributes Show shape attributes object
-
boost number
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.
-
_name string
-
ignore_unmapped boolean
When set to
true
the query ignores an unmapped field and will not match any documents.
-
-
simple_query_string object
Hide simple_query_string attributes Show simple_query_string attributes object
-
boost number
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.
-
_name string
-
analyzer string
Analyzer used to convert text in the query string into tokens.
-
analyze_wildcard boolean
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_operator string
Values are
and
,AND
,or
, orOR
. -
fields array[string]
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
flags string
Query flags can be either a single flag or a combination of flags, e.g.
OR|AND|PREFIX
One of: Query flags can be either a single flag or a combination of flags, e.g.
OR|AND|PREFIX
Values are
NONE
,AND
,NOT
,OR
,PREFIX
,PHRASE
,PRECEDENCE
,ESCAPE
,WHITESPACE
,FUZZY
,NEAR
,SLOP
, orALL
.Query flags can be either a single flag or a combination of flags, e.g.
OR|AND|PREFIX
-
fuzzy_max_expansions number
Maximum number of terms to which the query expands for fuzzy matching.
-
fuzzy_prefix_length number
Number of beginning characters left unchanged for fuzzy matching.
-
fuzzy_transpositions boolean
If
true
, edits for fuzzy matching include transpositions of two adjacent characters (for example,ab
toba
). -
lenient boolean
If
true
, format-based errors, such as providing a text value for a numeric field, are ignored. minimum_should_match number | string
The minimum number of terms that should match as integer, percentage or range
-
Query string in the simple query string syntax you wish to parse and use for search.
-
quote_field_suffix string
Suffix appended to quoted text in the query string.
-
-
span_containing object
Hide span_containing attributes Show span_containing attributes object
-
boost number
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.
-
_name string
-
Hide big attributes Show big attributes object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
Hide little attributes Show little attributes object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
-
span_field_masking object
Hide span_field_masking attributes Show span_field_masking attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
Hide query attributes Show query attributes object
-
span_containing object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
-
-
span_first object
Hide span_first attributes Show span_first attributes object
-
boost number
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.
-
_name string
-
Controls the maximum end position permitted in a match.
-
Hide match attributes Show match attributes object
-
span_containing object
-
span_field_masking object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
-
-
span_multi object
Hide span_multi attributes Show span_multi attributes object
-
span_near object
Hide span_near attributes Show span_near attributes object
-
boost number
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.
-
_name string
-
Array of one or more other span type queries.
Hide clauses attributes Show clauses attributes object
-
in_order boolean
Controls whether matches are required to be in-order.
-
slop number
Controls the maximum number of intervening unmatched positions permitted.
-
-
span_not object
Hide span_not attributes Show span_not attributes object
-
boost number
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.
-
_name string
-
dist number
The number of tokens from within the include span that can’t have overlap with the exclude span. Equivalent to setting both
pre
andpost
. -
Hide exclude attributes Show exclude attributes object
-
span_containing object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
-
Hide include attributes Show include attributes object
-
span_containing object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries. -
span_within object
-
-
post number
The number of tokens after the include span that can’t have overlap with the exclude span.
-
pre number
The number of tokens before the include span that can’t have overlap with the exclude span.
-
-
span_or object
Hide span_or attributes Show span_or attributes object
-
boost number
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.
-
_name string
-
Array of one or more other span type queries.
Hide clauses attributes Show clauses attributes object
-
-
span_term object
Matches spans containing a term.
-
span_within object
Hide span_within attributes Show span_within attributes object
-
boost number
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.
-
_name string
-
Hide big attributes Show big attributes object
-
span_containing object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries.
-
-
Hide little attributes Show little attributes object
-
span_containing object
-
span_field_masking object
-
span_first object
-
span_gap object
Can only be used as a clause in a span_near query.
Hide span_gap attributes Show span_gap attributes object
-
key number
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
The equivalent of the
term
query but for use with other span queries.
-
-
-
sparse_vector object
Hide sparse_vector attributes Show sparse_vector attributes object
-
boost number
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.
-
_name string
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
query string
The query text you want to use for search. If inference_id is specified, query must also be specified.
-
prune boolean
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_config object
Hide pruning_config attributes Show pruning_config attributes object
-
tokens_freq_ratio_threshold number
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_threshold number
Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
-
only_score_pruned_tokens boolean
Whether to only score pruned tokens, vs only scoring kept tokens.
-
-
query_vector object
Dictionary of precomputed sparse vectors and their associated weights. Only one of inference_id or query_vector may be supplied in a request.
Hide query_vector attributes Show query_vector attributes object
-
key number
-
inference_id string
-
-
term object
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.
-
terms object
Hide terms attributes Show terms attributes object
-
terms_set object
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.
-
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.
-
Supports returning text_expansion query results by sending in precomputed tokens with the query.
-
wildcard object
Returns documents that contain terms matching a wildcard pattern.
-
wrapper object
Hide wrapper attributes Show wrapper attributes object
-
boost number
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.
-
_name string
-
A base64 encoded query. The binary data format can be any of JSON, YAML, CBOR or SMILE encodings
-
-
type object
Hide type attributes Show type attributes object
-
-
runtime_mappings object
Hide runtime_mappings attributes Show runtime_mappings attributes object
-
fields object
Hide fields attributes Show fields attributes object
-
Values are
boolean
,composite
,date
,double
,geo_point
,ip
,keyword
,long
, orlookup
.
-
fetch_fields array[object]
For type
lookup
-
format string
A custom format for
date
type runtime fields. -
input_field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
target_field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
target_index string
-
script object
Hide script attributes Show script attributes object
-
source string
The script source.
-
id string
-
params object
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Hide params attributes Show params attributes object
-
key object
-
options object
Hide options attributes Show options attributes object
-
key string
-
-
Values are
boolean
,composite
,date
,double
,geo_point
,ip
,keyword
,long
, orlookup
.
-
settings object
Hide settings attributes Show settings attributes object
-
align_checkpoints boolean
Specifies whether the transform checkpoint ranges should be optimized for performance. Such optimization can align checkpoint ranges with the date histogram interval when date histogram is specified as a group source in the transform config. As a result, less document updates in the destination index will be performed thus improving overall performance.
-
dates_as_epoch_millis boolean
Defines if dates in the ouput should be written as ISO formatted string or as millis since epoch. epoch_millis was the default for transforms created before version 7.11. For compatible output set this value to
true
. -
deduce_mappings boolean
Specifies whether the transform should deduce the destination index mappings from the transform configuration.
-
docs_per_second number
Specifies a limit on the number of input documents per second. This setting throttles the transform by adding a wait time between search requests. The default value is null, which disables throttling.
-
max_page_search_size number
Defines the initial page size to use for the composite aggregation for each checkpoint. If circuit breaker exceptions occur, the page size is dynamically adjusted to a lower value. The minimum value is
10
and the maximum is65,536
. -
unattended boolean
If
true
, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case of an error which means the transform never fails. Setting the number of retries other than infinite fails in validation.
-
-
sync object
Hide sync attribute Show sync attribute object
-
time object
Hide time attributes Show time attributes object
-
delay string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
-
-
retention_policy object
Hide retention_policy attribute Show retention_policy attribute object
-
time object
Hide time attributes Show time attributes object
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
latest object
Hide latest attributes Show latest attributes object
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
Responses
-
200 application/json
Hide response attributes Show response attributes object
-
Hide generated_dest_index attributes Show generated_dest_index attributes object
-
aliases object
Hide aliases attributes Show aliases attributes object
-
filter object
Hide filter attributes Show filter attributes object
-
bool object
-
boosting object
-
combined_fields object
-
constant_score object
-
dis_max object
-
exists object
-
function_score object
-
fuzzy object
Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.
-
geo_bounding_box object
-
geo_distance object
-
geo_polygon object
-
geo_shape object
-
has_child object
-
has_parent object
-
ids object
-
intervals object
Returns documents based on the order and proximity of matching terms.
-
knn object
-
match object
Returns documents that match a provided text, number, date or boolean value. The provided text is analyzed before matching.
-
match_all object
-
match_bool_prefix object
Analyzes its input and constructs a
bool
query from the terms. Each term except the last is used in aterm
query. The last term is used in a prefix query. -
match_none object
-
match_phrase object
Analyzes the text and creates a phrase query out of the analyzed text.
-
match_phrase_prefix object
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.
-
more_like_this object
-
multi_match object
-
nested object
-
parent_id object
-
percolate object
-
prefix object
Returns documents that contain a specific prefix in a provided field.
-
query_string object
-
range object
Returns documents that contain terms within a provided range.
-
rank_feature object
-
regexp object
Returns documents that contain terms matching a regular expression.
-
rule object
-
script object
-
script_score object
-
semantic object
-
shape object
-
simple_query_string object
-
span_containing object
-
span_field_masking object
-
span_first object
-
span_multi object
-
span_near object
-
span_not object
-
span_or object
-
span_term object
Matches spans containing a term.
-
span_within object
-
term object
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.
-
terms object
-
terms_set object
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.
-
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.
-
Supports returning text_expansion query results by sending in precomputed tokens with the query.
-
wildcard object
Returns documents that contain terms matching a wildcard pattern.
-
wrapper object
-
type object
-
-
index_routing string
-
is_hidden boolean
If
true
, the alias is hidden. All indices for the alias must have the sameis_hidden
value. -
is_write_index boolean
If
true
, the index is the write index for the alias. -
routing string
-
search_routing string
-
mappings object
Hide mappings attributes Show mappings attributes object
-
all_field object
Hide all_field attributes Show all_field attributes object
-
date_detection boolean
-
dynamic string
Values are
strict
,runtime
,true
, orfalse
. -
dynamic_date_formats array[string]
-
dynamic_templates array[object]
-
_field_names object
Hide _field_names attribute Show _field_names attribute object
-
index_field object
Hide index_field attribute Show index_field attribute object
-
_meta object
Hide _meta attributes Show _meta attributes object
-
key object
-
numeric_detection boolean
-
properties object
-
_routing object
Hide _routing attribute Show _routing attribute object
-
_size object
Hide _size attribute Show _size attribute object
-
_source object
-
runtime object
Hide runtime attributes Show runtime attributes object
-
fields object
-
fetch_fields array[object]
For type
lookup
-
format string
A custom format for
date
type runtime fields. -
input_field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
target_field string
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
-
target_index string
-
script object
-
Values are
boolean
,composite
,date
,double
,geo_point
,ip
,keyword
,long
, orlookup
.
-
enabled boolean
-
subobjects boolean
-
_data_stream_timestamp object
Hide _data_stream_timestamp attribute Show _data_stream_timestamp attribute object
-
-
settings object
Hide settings attributes Show settings attributes object
-
index object
-
mode string
routing_path string | array[string]
-
soft_deletes object
Hide soft_deletes attributes Show soft_deletes attributes object
-
enabled boolean
Indicates whether soft deletes are enabled on the index.
-
retention_lease object
Hide retention_lease attribute Show retention_lease attribute object
-
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
sort object
Hide sort attributes Show sort attributes object
-
field string | array[string]
-
number_of_shards number | string
number_of_replicas number | string
-
number_of_routing_shards number
-
check_on_startup string
Values are
true
,false
, orchecksum
. -
codec string
routing_partition_size number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
hidden boolean | string
-
auto_expand_replicas string
-
merge object
Hide merge attribute Show merge attribute object
-
scheduler object
Hide scheduler attributes Show scheduler attributes object
max_thread_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
max_merge_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
-
search object
Hide search attributes Show search attributes object
-
refresh_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
max_result_window number
-
max_inner_result_window number
-
max_rescore_window number
-
max_docvalue_fields_search number
-
max_script_fields number
-
max_ngram_diff number
-
max_shingle_diff number
-
blocks object
Hide blocks attributes Show blocks attributes object
read_only boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
read_only_allow_delete boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
read boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
write boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
metadata boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
max_refresh_listeners number
-
analyze object
Hide analyze attribute Show analyze attribute object
max_token_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
highlight object
Hide highlight attribute Show highlight attribute object
-
max_analyzed_offset number
-
-
max_terms_count number
-
max_regex_length number
-
routing object
Hide routing attributes Show routing attributes object
-
allocation object
Hide allocation attributes Show allocation attributes object
-
enable string
Values are
all
,primaries
,new_primaries
, ornone
. -
include object
Hide include attributes Show include attributes object
-
_tier_preference string
-
_id string
-
-
initial_recovery object
Hide initial_recovery attribute Show initial_recovery attribute object
-
_id string
-
-
disk object
Hide disk attribute Show disk attribute object
-
-
rebalance object
Hide rebalance attribute Show rebalance attribute object
-
Values are
all
,primaries
,replicas
, ornone
.
-
-
-
gc_deletes string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
default_pipeline string
-
final_pipeline string
-
lifecycle object
Hide lifecycle attributes Show lifecycle attributes object
-
name string
indexing_complete boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
origination_date number
If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting if you create a new index that contains old data and want to use the original creation date to calculate the index age. Specified as a Unix epoch value in milliseconds.
-
parse_origination_date boolean
Set to true to parse the origination date from the index name. This origination date is used to calculate the index age for its phase transitions. The index name must match the pattern .*-{date_format}-\d+, where the date_format is yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format, for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails.
-
step object
Hide step attribute Show step attribute object
-
wait_time_threshold string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
rollover_alias string
The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more information about rolling indices, see Rollover.
-
-
provided_name string
creation_date number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
One of: Time unit for milliseconds
creation_date_string string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
uuid string
-
version object
Hide version attributes Show version attributes object
-
created string
-
created_string string
-
verified_before_close boolean | string
format string | number
-
max_slices_per_scroll number
-
translog object
Hide translog attributes Show translog attributes object
-
sync_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
durability string
Values are
request
,REQUEST
,async
, orASYNC
. flush_threshold_size number | string
-
retention object
Hide retention attributes Show retention attributes object
-
-
query_string object
Hide query_string attribute Show query_string attribute object
lenient boolean | string Required
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
priority number | string
-
top_metrics_max_size number
-
analysis object
Hide analysis attributes Show analysis attributes object
-
analyzer object
-
char_filter object
-
filter object
-
normalizer object
-
tokenizer object
-
-
settings object
-
time_series object
Hide time_series attributes Show time_series attributes object
start_time string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
queries object
-
similarity object
Configure custom similarity settings to customize how search results are scored.
-
mapping object
Hide mapping attributes Show mapping attributes object
-
coerce boolean
-
total_fields object
Hide total_fields attributes Show total_fields attributes object
-
limit number
The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance degradations and memory issues, especially in clusters with a high load or few resources.
-
ignore_dynamic_beyond_limit boolean
This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail. Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false. The fields that were not added to the mapping will be added to the _ignored field.
-
-
depth object
Hide depth attribute Show depth attribute object
-
limit number
The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.
-
-
nested_fields object
Hide nested_fields attribute Show nested_fields attribute object
-
limit number
The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this setting limits the number of unique nested types per index.
-
-
nested_objects object
Hide nested_objects attribute Show nested_objects attribute object
-
limit number
The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects.
-
-
field_name_length object
Hide field_name_length attribute Show field_name_length attribute object
-
limit number
Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The default is okay unless a user starts to add a huge number of fields with really long names. Default is
Long.MAX_VALUE
(no limit).
-
-
dimension_fields object
Hide dimension_fields attribute Show dimension_fields attribute object
-
limit number
[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
-
-
ignore_malformed boolean
-
-
indexing.slowlog object
Hide indexing.slowlog attributes Show indexing.slowlog attributes object
-
level string
-
source number
-
reformat boolean
-
threshold object
Hide threshold attribute Show threshold attribute object
-
index object
Hide index attributes Show index attributes object
-
warn string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
info string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
debug string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
trace string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
-
indexing_pressure object
Hide indexing_pressure attribute Show indexing_pressure attribute object
-
Hide memory attribute Show memory attribute object
-
limit number
Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded, the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit, the node will reject new replica operations. Defaults to 10% of the heap.
-
-
-
store object
Hide store attributes Show store attributes object
-
allow_mmap boolean
You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.
-
-
defaults object
Hide defaults attributes Show defaults attributes object
-
index object
-
mode string
routing_path string | array[string]
-
soft_deletes object
Hide soft_deletes attributes Show soft_deletes attributes object
-
enabled boolean
Indicates whether soft deletes are enabled on the index.
-
retention_lease object
Hide retention_lease attribute Show retention_lease attribute object
-
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
sort object
Hide sort attributes Show sort attributes object
-
field string | array[string]
-
number_of_shards number | string
number_of_replicas number | string
-
number_of_routing_shards number
-
check_on_startup string
Values are
true
,false
, orchecksum
. -
codec string
routing_partition_size number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
hidden boolean | string
-
auto_expand_replicas string
-
merge object
Hide merge attribute Show merge attribute object
-
scheduler object
Hide scheduler attributes Show scheduler attributes object
max_thread_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
max_merge_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
-
search object
Hide search attributes Show search attributes object
-
refresh_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
max_result_window number
-
max_inner_result_window number
-
max_rescore_window number
-
max_docvalue_fields_search number
-
max_script_fields number
-
max_ngram_diff number
-
max_shingle_diff number
-
blocks object
Hide blocks attributes Show blocks attributes object
read_only boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
read_only_allow_delete boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
read boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
write boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
metadata boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
max_refresh_listeners number
-
analyze object
Hide analyze attribute Show analyze attribute object
max_token_count number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
highlight object
Hide highlight attribute Show highlight attribute object
-
max_analyzed_offset number
-
-
max_terms_count number
-
max_regex_length number
-
routing object
Hide routing attributes Show routing attributes object
-
allocation object
Hide allocation attributes Show allocation attributes object
-
enable string
Values are
all
,primaries
,new_primaries
, ornone
. -
include object
Hide include attributes Show include attributes object
-
_tier_preference string
-
_id string
-
-
initial_recovery object
Hide initial_recovery attribute Show initial_recovery attribute object
-
_id string
-
-
disk object
Hide disk attribute Show disk attribute object
-
-
rebalance object
Hide rebalance attribute Show rebalance attribute object
-
Values are
all
,primaries
,replicas
, ornone
.
-
-
-
gc_deletes string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
default_pipeline string
-
final_pipeline string
-
lifecycle object
Hide lifecycle attributes Show lifecycle attributes object
-
name string
indexing_complete boolean | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
-
origination_date number
If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting if you create a new index that contains old data and want to use the original creation date to calculate the index age. Specified as a Unix epoch value in milliseconds.
-
parse_origination_date boolean
Set to true to parse the origination date from the index name. This origination date is used to calculate the index age for its phase transitions. The index name must match the pattern .*-{date_format}-\d+, where the date_format is yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format, for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails.
-
step object
Hide step attribute Show step attribute object
-
wait_time_threshold string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
rollover_alias string
The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more information about rolling indices, see Rollover.
-
-
provided_name string
creation_date number | string
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
One of: Time unit for milliseconds
creation_date_string string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
uuid string
-
version object
Hide version attributes Show version attributes object
-
created string
-
created_string string
-
verified_before_close boolean | string
format string | number
-
max_slices_per_scroll number
-
translog object
Hide translog attributes Show translog attributes object
-
sync_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
durability string
Values are
request
,REQUEST
,async
, orASYNC
. flush_threshold_size number | string
-
retention object
Hide retention attributes Show retention attributes object
-
-
query_string object
Hide query_string attribute Show query_string attribute object
lenient boolean | string Required
Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior is used to capture this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
priority number | string
-
top_metrics_max_size number
-
analysis object
Hide analysis attributes Show analysis attributes object
-
analyzer object
-
char_filter object
-
filter object
-
normalizer object
-
tokenizer object
-
-
settings object
-
time_series object
Hide time_series attributes Show time_series attributes object
start_time string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
queries object
-
similarity object
Configure custom similarity settings to customize how search results are scored.
-
mapping object
Hide mapping attributes Show mapping attributes object
-
coerce boolean
-
total_fields object
Hide total_fields attributes Show total_fields attributes object
-
limit number
The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance degradations and memory issues, especially in clusters with a high load or few resources.
-
ignore_dynamic_beyond_limit boolean
This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail. Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false. The fields that were not added to the mapping will be added to the _ignored field.
-
-
depth object
Hide depth attribute Show depth attribute object
-
limit number
The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.
-
-
nested_fields object
Hide nested_fields attribute Show nested_fields attribute object
-
limit number
The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this setting limits the number of unique nested types per index.
-
-
nested_objects object
Hide nested_objects attribute Show nested_objects attribute object
-
limit number
The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects.
-
-
field_name_length object
Hide field_name_length attribute Show field_name_length attribute object
-
limit number
Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The default is okay unless a user starts to add a huge number of fields with really long names. Default is
Long.MAX_VALUE
(no limit).
-
-
dimension_fields object
Hide dimension_fields attribute Show dimension_fields attribute object
-
limit number
[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
-
-
ignore_malformed boolean
-
-
indexing.slowlog object
Hide indexing.slowlog attributes Show indexing.slowlog attributes object
-
level string
-
source number
-
reformat boolean
-
threshold object
Hide threshold attribute Show threshold attribute object
-
index object
Hide index attributes Show index attributes object
-
warn string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
info string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
debug string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
trace string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
-
indexing_pressure object
Hide indexing_pressure attribute Show indexing_pressure attribute object
-
Hide memory attribute Show memory attribute object
-
limit number
Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded, the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit, the node will reject new replica operations. Defaults to 10% of the heap.
-
-
-
store object
Hide store attributes Show store attributes object
-
allow_mmap boolean
You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.
-
-
data_stream string
-
lifecycle object
Hide lifecycle attributes Show lifecycle attributes object
-
data_retention string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
downsampling object
Hide downsampling attribute Show downsampling attribute object
-
The list of downsampling rounds to execute as part of this downsampling configuration
-
-
-
-
-
curl \
-X GET http://api.example.com/_transform/_preview \
-H "Content-Type: application/json" \
-d '{"pivot":{"group_by":{"customer_id":{"terms":{"field":"customer_id","missing_bucket":true}}},"aggregations":{"max_price":{"max":{"field":"taxful_total_price"}}}},"source":{"index":"kibana_sample_data_ecommerce"}}'
{
"pivot": {
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id",
"missing_bucket": true
}
}
},
"aggregations": {
"max_price": {
"max": {
"field": "taxful_total_price"
}
}
}
},
"source": {
"index": "kibana_sample_data_ecommerce"
}
}