Browse Source

Fix parent_id example in docs

And fix some indentation I noticed while looking up the query.
Nik Everett 8 years ago
parent
commit
75d5b3d9eb

+ 1 - 2
docs/reference/mapping/fields/parent-field.asciidoc

@@ -69,7 +69,7 @@ GET my_index/_search
 {
   "query": {
     "parent_id": { <1>
-      "type": "my_parent",
+      "type": "my_child",
       "id": "1"
     }
   },
@@ -84,7 +84,6 @@ GET my_index/_search
   "script_fields": {
     "parent": {
       "script": {
-         "lang": "painless",
          "inline": "doc['_parent']" <3>
       }
     }

+ 1 - 1
docs/reference/query-dsl/parent-id-query.asciidoc

@@ -40,7 +40,7 @@ GET /my_index/_search
     "query": {
         "parent_id" : {
             "type" : "blog_tag",
-                "id" : "1"
+            "id" : "1"
         }
     }
 }