It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
NestedQuery
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
NestedQuery
editA query that matches nested objects.
Properties
edit-
path
(string
, required) - The path to the nested object.
-
query
(QueryContainer
, required) - The actual query to execute on the nested objects.
-
score_mode
(string
; allowed values: [avg
,sum
,min
,max
,none
]) - Allows to specify how inner children matching affects score of the parent. Refer to the Elasticsearch documentation for details.
Example
edit{ "path" : "string", "query" : { "bool" : { "filter" : [ null ], "minimum_should_match" : 0, "must" : [ null ], "must_not" : [ null ], "should" : [ null ] }, "exists" : { "field" : "string" }, "match" : { "some_property" : { "analyzer" : "string", "minimum_should_match" : 0, "operator" : "string", "query" : "string" } }, "match_all" : {}, "match_none" : {}, "nested" : null, "prefix" : { "some_property" : { "boost" : 0.1, "value" : "string" } }, "query_string" : { "allow_leading_wildcard" : true, "analyzer" : "string", "default_field" : "string", "default_operator" : "string", "query" : "string" }, "range" : { "some_property" : { "boost" : 0.1, "format" : "string", "gt" : {}, "gte" : {}, "lt" : {}, "lte" : {}, "time_zone" : "string" } }, "term" : { "some_property" : { "value" : {} } } }, "score_mode" : "string" }