Including multi-word stopwords in Solr

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:58:02

问题


Is it possible to include multi-word stopwords in stopfilterfactory of Solr? If yes, kindly tell me the way.

Right now first I am putting all the multiple-word stopwords in synonyms.txt file and then using one synonym for all these words in stopwords.txt, but its not working.


回答1:


I give a try this kind of a syntax

stopwords.txt

stop word
more long stop word

and it looks like it working. Check out my test case here - https://github.com/MysterionRise/information-retrieval-adventure/blob/master/lucene5/src/main/scala/org/mystic/SynonymsAndStopwords.scala



来源:https://stackoverflow.com/questions/28667629/including-multi-word-stopwords-in-solr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!