Elasticsearch-使用样本大小的聚合
我有一个具有大量记录的Elasticsearch数据库。我的数据具有数字得分
和标签
。我正在汇总特定label
的得分
字段的中位数和四分位数。例如,使用标签foo
的所有文档的中值分数是多少。
有谁知道是否可以将这些百分位聚合基于统计意义的数据样本而不是完整集合,以加快聚合查询?
谢谢!
I have an ElasticSearch database that has a large number of records. My data has a numeric score
and label
. I am aggregating the median and quartiles of the score
field for a specific label
. For example, what is the median score of all documents with the label foo
.
Does anyone know if it's possible to base those percentile aggregations on a statistically significant sample of the data, instead of the full set, in order to speed up the aggregation query?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用术语查询或任何其他查询来过滤文档并将汇总应用于这些结果。
这样一来,攻击不仅对查询结果的所有文档应用。
You can use a Term Query or any other query to filter the documents and apply aggregation to those results.
That way the aggression is not applied to all documents only to the query result.