문제

I'm using Lucene Contrib's SurroundQueryParser, and I've hit an issue with escaping keywords. Unlike Lucene's regular QueryParser, Surround seems to recognize even lower case and/or/not as keywords, and not only the uppercase version, which causes some queries to fail. Do you know a way to escape the keywords?

도움이 되었습니까?

해결책

Looks like regular quotes ("not") does the trick.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top