Enviroment
ES 5.2
sample is not working
{
"from": 0,
"size": 0,
"aggs": {
"image_tag" : {
"children": {
"type": "review"
},
"aggs": {
"image_tags" : {
"filter": {"query": {"match_phrase": {
"user_comment": "hogehoge"
}}}
}
}
}
}
}
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "Could not find aggregator type [query] in [image_tags]",
"line": 11,
"col": 22
}
],
"type": "parsing_exception",
"reason": "Could not find aggregator type [query] in [image_tags]",
"line": 11,
"col": 22
},
"status": 400
}