سؤال

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