【问题标题】:Amazon ElasticSearch Service Unknown aggregation type boxplotAmazon ElasticSearch Service 未知聚合类型箱线图
【发布时间】:2021-10-07 19:16:30
【问题描述】:

我已经在本地使用 Symfony 5 在 ElasticSearch 7.9.3(通过 Docker 映像)中创建了一个箱线图查询,它工作得很好。但是在我使用 Amazon ElasticSearch Service 的测试环境上上传时,出现错误:“未知聚合类型 [boxplot]”。亚马逊上的 ES 版本是 7.9.1。 我使用的代码:

"query" => ...
"aggs" => [
                "agg_boxplot" => [
                    "terms" => [
                        "field" => "field_name"
                    ],
                    "aggs" => [
                        "bucket_name" => [
                            "boxplot" => [
                                "field" => "field_name"
                            ]
                        ]
                    ]
                ],
...
]

我已经搜索了互联网,但没有关于 Amazon ElasticSearch 和箱线图的答案。

我看到 Amazon QuickSight 有一个使用 Amazon ElasticSearch 的箱线图选项,因此可以通过某种方式完成(希望没有 QuickSight)。

在 Amazon Web Services 中使用箱线图有哪些选择?

【问题讨论】:

    标签: php amazon-web-services symfony elasticsearch amazon-elasticsearch


    【解决方案1】:

    Boxplot aggregation 是 XPack 功能,因此不适用于基于 OSS 分布的 AWS Elasticsearch 服务。

    AWS Elasticsearch 服务仅包含下图中红色的聚合:

    来源:https://www.elastic.co/subscriptions

    但是,您可以使用以下免费聚合来模拟箱线图聚合:

    要知道的另一件事是 AWS Elasticsearch 服务已经分叉(从 7.10.2 开始)并且现在命名为 AWS Opensearch

    【讨论】:

    • 谢谢!像魅力一样工作!
    猜你喜欢
    • 2019-01-11
    • 2016-09-02
    • 1970-01-01
    • 2014-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-09
    • 1970-01-01
    相关资源
    最近更新 更多