mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
Revert back to type instead of child_type...
for has child queries. Relates to #14249
This commit is contained in:
parent
7698ab7bfc
commit
a656f90a72
@ -9,7 +9,7 @@ an example:
|
||||
--------------------------------------------------
|
||||
{
|
||||
"has_child" : {
|
||||
"child_type" : "blog_tag",
|
||||
"type" : "blog_tag",
|
||||
"query" : {
|
||||
"term" : {
|
||||
"tag" : "something"
|
||||
@ -34,7 +34,7 @@ inside the `has_child` query:
|
||||
--------------------------------------------------
|
||||
{
|
||||
"has_child" : {
|
||||
"child_type" : "blog_tag",
|
||||
"type" : "blog_tag",
|
||||
"score_mode" : "min",
|
||||
"query" : {
|
||||
"term" : {
|
||||
@ -56,7 +56,7 @@ a match:
|
||||
--------------------------------------------------
|
||||
{
|
||||
"has_child" : {
|
||||
"child_type" : "blog_tag",
|
||||
"type" : "blog_tag",
|
||||
"score_mode" : "min",
|
||||
"min_children": 2, <1>
|
||||
"max_children": 10, <1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user