use*_*999 5 java lucene operators
The NOT operator excludes documents that contain the term after NOT.
...
The "-" or prohibit operator excludes documents that contain
the term after the "-" symbol
Run Code Online (Sandbox Code Playgroud)
我认为区别在于 - 运算符可以单独使用,而 NOT 则不是这种情况。是这样吗?
很久以前我在某处读过这篇文章...与您的猜测类似...:)
NOT 运算符不能仅与一项一起使用。例如,以下搜索将不会返回任何结果:
NOT "jakarta apache"
而“-”或禁止运算符排除包含“-”符号后的术语的文档...
希望这会有用..