简体   繁体   English

Solr-无法使词干和海拔升高协同工作

[英]Solr - cannot get stemming and elevation to work together

Solr 4.6 running on CentOS 6.5, run by a Solr newbie (me!). Solr 4.6在由Solr新手(我!)运行的CentOS 6.5上运行。 We use Nutch to crawl our sites, then pass the info to Solr. 我们使用Nutch抓取我们的网站,然后将信息传递给Solr。

Elevate was working fine until we added the stemming feature. 在添加词干功能之前,Elevate正常运行。

  • Our Solr config file: solrconfig.xml 我们的Solr配置文件: solrconfig.xml
  • Our Solr schema file: schema.xml 我们的Solr模式文件: schema.xml
  • Our search string is: 我们的搜索字符串是:

    [solrserver]/elevate?q=[search term]&fl=content%2Ctitle%2Curl&wt=json&indent=true&defType=edismax&qf=content%2Ctitle&stopwords=true&lowercaseOperators=true [solrserver] / elevate?q = [搜索词]&fl = content%2Ctitle%2Curl&wt = json&indent = true&defType = edismax&qf = content%2Ctitle&stopwords = true&lowercaseOperators = true

What am I doing wrong? 我究竟做错了什么?

Thanks for any help. 谢谢你的帮助。

Ben

If you want elevation of documents with tokens that have been analyzed you should use the same field for both 如果要使用经过分析的标记来抬高文档,则应为两个标记使用相同的字段

<searchComponent name="elevator" class="solr.QueryElevationComponent">
<!-- pick a fieldType to analyze queries -->
<str name="queryFieldType">text</str>
<str name="config-file">elevate.xml</str>
</searchComponent>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM