在query syntax of Lucene据说如下:
The NOT operator excludes documents that contain the term after NOT.
...
The "-" or prohibit operator excludes documents that contain
the term after the "-" symbol
我认为不同之处在于 - 运算符可以单独使用,而 NOT 则不然。是吗?
最佳答案
有一个非常细微的区别。看看 "Getting a Better Understanding of Lucene's Search Operators" 上的这个长线程这应该有望回答您的问题。
关于java - Lucene 中的 - 和 NOT 运算符有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3838438/