Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 solr 用例中,我没有任何停用词。我发现 AND 被视为查询运算符。我将 + 放在 AND 前面,现在它不再被视为一个词。这是解决这个问题的正确方法还是有更优选的方法?
请使用双引号将其包装起来。
例子:
q=field:"AND"
检查您的管道是否没有丢弃 AND 作为停用词。在 Solr 4+ 中,您可以在 WebUI 的分析部分中执行此操作。它将显示您的文本在通过分析器时会发生什么。