聚合查询的弹性搜索验证

时间:2015-08-31 07:02:58

标签: elasticsearch elasticsearch-aggregation

我在奇迹中运行简单的聚合查询并获得没有问题的结果: enter image description here

但是当我验证相同的查询时,它返回false,并在解释中说" QueryParsingException" ... enter image description here

我可以验证其他查询是否有效,如果无效,则为true,即使我的聚合查询有效,并给我docmens其验证结果为false ..为什么会这样?它的某种错误在这里?还是?

1 个答案:

答案 0 :(得分:0)

您的验证网址应如下所示:

dota2/_validate/query?explain=true

而不喜欢这个

dota2/_search/_validate/query?explain=true
         ^
         |
    remove this