This should be fixed in trunk by LUCENE-2566

QueryParser: Unary operators +,-,! will not be treated as operators if
they are followed by whitespace.

-Yonik
lucidimagination.com



On Mon, Feb 20, 2012 at 2:09 PM, jmlucjav <jmluc...@gmail.com> wrote:
> Hi,
>
> I am using edismax with end user entered strings. One search was not finding
> what appeared to be the best match. The search was:
>
> Sage Creek Organics - Enchanted
>
> If I remove the -, the doc I want is found as best score. Turns out (I
> think) the - is the culprit as the best match has 'enchanted' and this makes
> it 'NOT enchanted'
>
> Is my analisys correct? I tried looking at the debug output but saw not NOT
> entries there...
>
> If so, is there a standard way (any filter) to remove lucene operators from
> user entered queries? I thought this must be something usual.
>
> thanks
> javi
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/lucene-operators-interfearing-in-edismax-tp3761577p3761577.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to