Skip to content

Commit 5e38736

Browse files
committed
Fix parent_id example in docs
And fix some indentation I noticed while looking up the query.
1 parent 6f8912b commit 5e38736

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/reference/mapping/fields/parent-field.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ GET my_index/_search
6969
{
7070
"query": {
7171
"parent_id": { <1>
72-
"type": "my_parent",
72+
"type": "my_child",
7373
"id": "1"
7474
}
7575
},
@@ -84,7 +84,6 @@ GET my_index/_search
8484
"script_fields": {
8585
"parent": {
8686
"script": {
87-
"lang": "painless",
8887
"inline": "doc['_parent']" <3>
8988
}
9089
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GET /my_index/_search
4040
"query": {
4141
"parent_id" : {
4242
"type" : "blog_tag",
43-
"id" : "1"
43+
"id" : "1"
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)