Solr rule based boost

后端 未结 1 1976
予麋鹿
予麋鹿 2021-01-01 00:09

I am using Solr-5.0.0. I am searching on a field product_name. I need to add some rules to get relevant results.

  1. If I search f

相关标签:
1条回答
  • 2021-01-01 00:43

    To begin with, you should use the dismax or edismax query parser instead of the default (lucene).

    Then you can improve relevancy using different parameters :

    1. : Use qf to boost your product_name field.
    2. : Use pf to boost your product_name field where all of the terms in the q parameter appear in close proximity.
    3. : Use bq to boost documents where the words with or without don't appear. See here. For example : bq=(*:* -with -without)^999
    0 讨论(0)
提交回复
热议问题