Solr:如何使用高程分量,模糊搜索和Boosting togather?

时间:2016-12-09 11:01:57

标签: boost solr

当我在没有增强和模糊搜索的情况下使用solr高程分量时,它可以完美地工作。高级文档位于顶部,而其他匹配的文档基于分数

xx.xx.xx.xx:8983/solr/collection1/elevate?q=ipod&wt=json&indent=true

但是当我使用提升和模糊搜索的高程分量时,高分文件出现在顶部而不是提升的文件为什么?我仍然希望高架文档能够达到顶峰。

xx.xx.xx.xx:8983/solr/collection1/elevate?q=(black ipod~)^5 ("black ipod")^10&wt=json&indent=true

1 个答案:

答案 0 :(得分:0)

Elevate component doesn't work with fuzzy string.

q should match exactly what you entered in elevate.xml file

<query text="ipod">
   <doc id="MA147LL/A" />  <!-- put the actual ipod at the top -->
   <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
 </query>
相关问题