ES版本:1.3.2
映射如下:
{
"holder": {},
"unit": {
"_parent": { "type": "holder" }
}
}
但是任何带有子聚合的查询都只返回
解析失败[无法在[count_units]中找到聚合器类型[children]]
查询我按以下方式运行:
{
"aggs": {
"count_units": {
"children": { "type": "unit" }
}
}
}
我从文件中遗漏了什么?