在 Solr 中包含多词停用词

Including multi-word stopwords in Solr

是否可以在 Solr 的 stopfilterfactory 中包含多词停用词?如果是,请告诉我方法。

现在我首先将所有多词停用词放入 synonyms.txt 文件中,然后对 中的所有这些词使用一个同义词stopwords.txt,但它不起作用。

我试试这种语法

stopwords.txt

stop word
more long stop word

它看起来很有效。在这里查看我的测试用例 - https://github.com/MysterionRise/information-retrieval-adventure/blob/master/lucene5/src/main/scala/org/mystic/SynonymsAndStopwords.scala