简体   繁体   English

ElasticSearch排名-得分

[英]ElasticSearch ranking - scoring

We are developing an app with java and using elasticsearch java api. 我们正在使用Java开发应用程序,并使用Elasticsearch Java API。 We indexed metadatas and want to use ranking/scoring at indexing time or searching time. 我们为元数据建立了索引,并希望在建立索引或搜索时使用排名/评分。

And also, I dunno if it is possible to rank/score a result which is choosed/approved by the users when they click a result. 而且,我不知道是否可以对用户单击结果时选择/批准的结果进行排名/评分。 It is like to set that result is a popular result and increase its popularity. 就像将结果设置为受欢迎的结果并增加其受欢迎程度一样。

How to implement them? 如何实施? Thanks for your suggestions. 感谢您的建议。

elasticsearch is allow us to change/modify the elasticsearch score using the _score . _score允许我们使用_score更改/修改_score得分。

I hope your requirement is to maintain custom ranking in documents rather than the elasticsearch scoring. 我希望您的要求是保持文档中的自定义排名,而不是elasticsearch评分。

if so you need to design the document like that. 如果是这样,则需要像这样设计文档。 Add a filed name like userRank in all the documents and increment the value if a user click the document in the result. 在所有文档中添加一个类似于userRank的文件名,如果用户在结果中单击该文档,则将其值增加。 using function_score you can add the userRank field value to the calculated _score . 使用function_score可以将userRank字段值添加到计算的_score

There's a large and complex field called learning to rank that studies how to turn quality information about documents/queries and turn them into relevance ranking rules. 有一个大而复杂的领域,称为“ 学习排名” ,研究如何将有关文档/查询的质量信息转化为相关性排名规则。

For Elasticsearch specifically, there is this plugin that could help. 特别是对于Elasticsearch, 此插件可以提供帮助。 (disclaimer I'm the creator). (免责声明,我是创作者)。

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

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