【问题标题】:Elasticsearch Date Histogram Aggregation - get buckets by N countElasticsearch 日期直方图聚合 - 按 N 个计数获取存储桶
【发布时间】:2015-03-19 14:13:39
【问题描述】:

我需要从带有 N 个桶的 elasticsearch 日期直方图获取。例如,我现在可以按间隔获取数据。 1 个月 - 但我需要获取未定义间隔的日期,但我现在需要计算桶数 - 并且间隔必须由弹性搜索计算。

有可能吗?

我在这里找不到答案:http://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html

对不起我的英语。

附言。 我可以通过创建插件请求来做到这一点(在我发送正确的请求之前获取 date_min、date_max 并计算间隔),但是 2 个请求比 1 个请求差;)

【问题讨论】:

    标签: elasticsearch date-histogram


    【解决方案1】:

    elasticsearch 尚不支持此功能。见issue 9572

    【讨论】:

    • 好的。感谢您的回复。
    猜你喜欢
    • 1970-01-01
    • 2017-10-27
    • 1970-01-01
    • 2017-09-22
    • 2015-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-13
    相关资源
    最近更新 更多