Solr 能否提高社交“点赞”数量的结果?
我试图根据“喜欢”的数量对结果进行排序。
最明显的解决方案是为每一行设置一个“喜欢”字段,并为每个单击“喜欢”的用户重新索引文档。但在这种情况下,对大型文档重新建立索引是不切实际的。
(以下是为了举例:不涉及大型文档)
理想情况下,我想将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 ExternalFileField。目前没有很多关于它的文档,但请参阅 此演示文稿。
Take a look at ExternalFileField. There isn't a lot of documentation about it at the moment, but see this presentation.
还要看一下点击率
相关性排名演示文稿
Also take a look at click-through
relevance ranking presentation