mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Fix parent_id example in docs
And fix some indentation I noticed while looking up the query.
This commit is contained in:
parent
26f92f8482
commit
75d5b3d9eb
@ -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>
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user