solr在solrconfig中设置相关性得分

solr在solrconfig中设置相关性得分,solr,Solr,我使用Solr4.4,我想通过相关性搜索精确匹配的单词。我有10个字段,我使用了 复制字段来实现这一点,而且基本上工作正常 我有问题的确切匹配结果应该是更高的顺序 还有,我如何设置分数 schema.xml solrconfig.xml 明确的 埃迪斯马克斯 field8描述关键字^10.0 文本 100% *:* 10 *,得分 ........ ........ ........ 短语字段 使用fq识别匹配文档列表后 和qf参数,pf参数可以用来“提高”分数 在q参数中的所有术语都出现

我使用Solr4.4,我想通过相关性搜索精确匹配的单词。我有10个字段,我使用了

复制字段来实现这一点,而且基本上工作正常

我有问题的确切匹配结果应该是更高的顺序

还有,我如何设置分数

schema.xml

solrconfig.xml

明确的
埃迪斯马克斯
field8描述关键字^10.0
文本
100%
*:*
10
*,得分
........
........
........
短语字段 使用fq识别匹配文档列表后 和qf参数,pf参数可以用来“提高”分数 在q参数中的所有术语都出现的情况下的文档 近在咫尺

例如,如果通过将pf设置为标题来搜索Apache Solr Lucene

q=Apache Solr Lucen
& qf=title name
& pf=title

<!--Debug-->

<str name="parsedquery_toString">
+((name:apache | title:apache) (name:solr | title:solr) (name:lucene | title:lucene)) (title:"apache solr lucene")
</str>
q=apachesolr-Lucen
&qf=标题名
&pf=标题
+((名称:apache | title:apache)(名称:solr | title:solr)(名称:lucene | title:lucene))(标题:“apache solr lucene”)
现在,如果您查看调试响应,它会搜索单个关键字,但也会搜索短语。因此,它会提升所有以搜索字符串为短语的搜索结果。


p.S:-同样,pf只会影响提升分数,而不会影响搜索结果。

请提供任何输入?对不起,请提供任何指针?
<requestHandler name="/browse" class="solr.SearchHandler">
     <lst name="defaults">
       <str name="echoParams">explicit</str>
<!-- Query settings -->
       <str name="defType">edismax</str>

        <str name="qf">
          field8 description keyword ^10.0
       </str> 
       <str name="df">text</str>
       <str name="mm">100%</str>
       <str name="q.alt">*:*</str>
       <str name="rows">10</str>
       <str name="fl">*,score</str>
     ........
      ........

    ........
q=Apache Solr Lucen
& qf=title name
& pf=title

<!--Debug-->

<str name="parsedquery_toString">
+((name:apache | title:apache) (name:solr | title:solr) (name:lucene | title:lucene)) (title:"apache solr lucene")
</str>