编辑:答案如下
尝试任何聚合查询时出现always following错误。
尝试了谷歌搜索和不同的聚合结构。Elasticsearch API由OVH托管为“日志数据平台”。
请求
{
"aggs" : {
"servers" : {
"filter" : { "term": { "servertype": "1" } },
"aggs" : {
"avg_price" : { "avg" : { "field" : "serveramount" } }
}
}
}
}错误响应
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "Unable to filter min_docs_count"
}
],
"type": "parse_exception",
"reason": "Unable to filter min_docs_count",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "[size] parameter cannot be negative, found [-1]"
}
},
"status": 400
}发布于 2019-07-05 23:02:09
愚蠢的我..。查询参数中缺少size=0。
https://stackoverflow.com/questions/56905216
复制相似问题