I ran into a problem parsing queries like "cat -tiger" with this setup:

SimpleQueryParser configured with NOT_OPERATOR and *without*

In this case, the whole string "cat -tiger" is passed to the analyzer which
generates tokens "cat" and "tiger", so the negation gets dropped.

I'm wondering if perhaps SQP should recognize whitespace followed by "-" as
a an end-of-token?


Reply via email to