简体   繁体   English

Elasticsearch - 使用 Java 根据匹配分数进一步过滤结果

[英]Elasticsearch - Further filter out results based on match score using Java

We are currently limiting to 50 documents when we are searching in. But score for each document could be very different.我们目前在搜索时限制为 50 个文档。但每个文档的分数可能会有很大差异。 eg score of 1st object = 5, score of 50th object = 0.0001.例如,第一个对象的分数 = 5,第 50 个对象的分数 = 0.0001。 In this case we need to filter out objects with so low score.在这种情况下,我们需要过滤掉得分如此低的对象。

What kind of statistical distribution/formula should we use upon querying to the elasticsearch?在查询 elasticsearch 时,我们应该使用什么样的统计分布/公式? I am thinking of standard deviation but not so sure?我在考虑标准偏差但不太确定?

From what I understand you want to have a minimum_score to reduce results.据我了解,您希望有一个 minimum_score 来减少结果。 Did you read about the min_score parameter?你读过min_score参数吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM