开发者

Boost in sunspot (solr)

开发者 https://www.devze.com 2023-03-31 01:13 出处:网络
In sunspot you can hint relevancy using开发者_开发百科 the :boost option: text :name, :boost => 2.0

In sunspot you can hint relevancy using开发者_开发百科 the :boost option:

text :name, :boost => 2.0

From this link, I think that the default boost is 1: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html

My question is whether the sunspot boost amount is passed directly to the lucene boost? I'm wondering if I can do :boost => .5 to lower the relevancy of a certain result.


Yes, you are exactly right. Sunspot will use those :boost options for query-time boosting when it assembles the qf parameter.

0

精彩评论

暂无评论...
验证码 换一张
取 消