Browse Source

docs: fix inner hits snippet

Martijn van Groningen 10 years ago
parent
commit
8e0292b1aa
1 changed files with 4 additions and 6 deletions
  1. 4 6
      docs/reference/search/request/inner-hits.asciidoc

+ 4 - 6
docs/reference/search/request/inner-hits.asciidoc

@@ -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.