相关疑难解决方法(0)

Solr能否提升社交"喜欢"的数量?

我试图根据"喜欢"数量来订购结果.

最明显的解决方案是为每行设置一个"赞"字段,并为每个点击"喜欢"的用户重新索引文档.但在这种情况下,重新索引大型文档并不实用.


(以下是为了举例:没有涉及大型文件)

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

数据行(如下所示)是随时间相对稳定.

id:place_1 
title: ela restaurant
meta: sea food, chinese food festival
description: this place...
Run Code Online (Sandbox Code Playgroud)

动作的行各自用户点击"喜欢"时间插入.

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

id:action_44323
action:like
user:doe
target:place_1
Run Code Online (Sandbox Code Playgroud)

如果每个喜欢存在于自己的行上,我怎么能根据喜欢数量来提升结果呢?


我知道即将到来的Solr 4.0中存在连接http://wiki.apache.org/solr/Join.但它会根据匹配的行改善分数吗?

solr full-text-search scoring

6
推荐指数
1
解决办法
842
查看次数

标签 统计

full-text-search ×1

scoring ×1

solr ×1