|
@@ -16,11 +16,9 @@ The structure looks like this:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-"inner_hits" : {
|
|
|
- "<query>" : {
|
|
|
- "inner_hits" : {
|
|
|
- <inner_hits_options>
|
|
|
- }
|
|
|
+"<query>" : {
|
|
|
+ "inner_hits" : {
|
|
|
+ <inner_hits_options>
|
|
|
}
|
|
|
}
|
|
|
--------------------------------------------------
|
|
@@ -283,4 +281,4 @@ Additional options that are only available when using the top level inner hits n
|
|
|
`query`:: Defines the query that will run in the defined nested, parent or child scope to collect and score hits. By default all document in the scope will be matched.
|
|
|
|
|
|
Either `path` or `type` must be defined. The `path` or `type` defines the scope from where hits are fetched and
|
|
|
-used as inner hits.
|
|
|
+used as inner hits.
|