【问题标题】:Boost in sunspot (solr)太阳黑子增强(solr)
【发布时间】:2011-08-28 01:08:09
【问题描述】:

在太阳黑子中,您可以使用 :boost 选项提示相关性:

text :name, :boost => 2.0

从这个链接,我认为默认的boost是1: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html

我的问题是太阳黑子增强量是否直接传递给 lucene 增强?我想知道我是否可以通过:boost => .5 来降低某个结果的相关性。

【问题讨论】:

    标签: ruby-on-rails solr sunspot


    【解决方案1】:

    是的,你完全正确。当 Sunspot 组装 qf 参数时,它将使用这些 :boost 选项来提升查询时间。

    【讨论】:

    • 谢谢!我所做的一些测试也证实了这一点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-22
    • 2014-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多