【发布时间】:2015-03-04 16:06:35
【问题描述】:
我配置了一个 stopwords.txt,它工作正常。
问题是当我想搜索一个只为 stopwords.txt 中包含的单词组成的短语时。 Solr 没有返回结果。 例如,在 stopwords.txt 我有这样的话:
other
the
cat
当我搜索:cat 时,Solr 会省略结果,the 和 cat 也是如此。没关系。
但是当我搜索:the cat 时,Solr 也在做同样的事情,省略了结果,而这正是我想要避免的。我希望所有包含猫的东西都被退回。
提前致谢
PS:这是我的配置行
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
【问题讨论】: