Solr 能否提高社交“点赞”数量的结果?

发布于 2024-12-19 19:44:54 字数 786 浏览 5 评论 0原文

我试图根据“喜欢”的数量对结果进行排序。

最明显的解决方案是为每一行设置一个“喜欢”字段,并为每个单击“喜欢”的用户重新索引文档。但在这种情况下,对大型文档重新建立索引是不切实际的。


(以下是为了举例:不涉及大型文档)

理想情况下,我想将 Solr 中的数据和用户操作索引为单独的行。

数据行(如下所示)随着时间的推移相对稳定。

id:place_1 
title: ela restaurant
meta: sea food, chinese food festival
description: this place...

每次用户点击“赞”时都会插入操作行

id:action_43141
action:like
user:john
target:place_1

id:action_44323
action:like
user:doe
target:place_1

鉴于每个点赞都存在于其自己的行中,如何根据点赞数来提升结果?


我知道即将推出的 Solr 4.0 中存在连接 http://wiki.apache.org/solr/Join。但它会根据匹配行的数量来提高分数吗?

I am trying to order the results based on the number of "likes".

The most obvious solution is to have a "likes" field for each row and re-index the document for every user who clicks "like". But re-indexing large documents isnt practical in this case.


(following is for the sake of example: no large documents involved)

Ideally, I would like to index both the data and the user actions in Solr as separate rows.

The data rows (as shown below) are relatively stable over time.

id:place_1 
title: ela restaurant
meta: sea food, chinese food festival
description: this place...

The action rows are inserted each time the user clicks "like".

id:action_43141
action:like
user:john
target:place_1

id:action_44323
action:like
user:doe
target:place_1

How can I boost a result based on the number of likes, given that each like exist on it's own row?


I know there exist joins in the upcoming Solr 4.0 http://wiki.apache.org/solr/Join . But would it improve scores based on number of matching rows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晨曦慕雪 2024-12-26 19:44:54

看一下 ExternalFileField。目前没有很多关于它的文档,但请参阅 此演示文稿

Take a look at ExternalFileField. There isn't a lot of documentation about it at the moment, but see this presentation.

埖埖迣鎅 2024-12-26 19:44:54

还要看一下点击率
相关性排名演示文稿

Also take a look at click-through
relevance ranking presentation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文