elasticsearch儿童聚合,失踪儿童聚合器

时间:2014-09-18 04:16:04

标签: elasticsearch

我想按照herehere

的说明汇总父母子映射中匹配父母的子女数量

ES版本:1.3.2

映射如下:

{
    "holder": {},
    "unit": {
        "_parent": { "type": "holder" }
    }
}

但是任何带有子聚合的查询都只返回

解析失败[无法在[count_units]中找到聚合器类型[children]]

查询我按以下方式运行:

{
    "aggs": {
        "count_units": {
            "children": { "type": "unit" }
        }
    }
}

我从文件中遗漏了什么?

0 个答案:

没有答案