我使用Elasticsearch 6.3,尝试在条件聚合的输出上使用moving_avg聚合,该聚合返回键/值对“存储桶”的列表
{
"aggregations": {
"my_date_histo": {
"buckets": [
{
"key_as_string": "2018-06-25",
"key": 1529931600000,
"doc_count": 271,
"the_sum": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "a",
"doc_count": 94
},
{
"key": "b",
"doc_count": 62
}
]
}
},
我看到了有关存储桶路径选择的文档,但似乎无法索引此存储桶响应列表
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline.html