Revert back to type instead of child_type...

for has child queries.

Relates to #14249
This commit is contained in:
Isabel Drost-Fromm 2015-11-19 14:47:01 +01:00
parent 7698ab7bfc
commit a656f90a72
1 changed files with 3 additions and 3 deletions

View File

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