lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (SOLR-2087) Dismax handler not handling +/- correctly
Date Tue, 24 Aug 2010 22:38:16 GMT


Hoss Man commented on SOLR-2087:

It's possible some improvements could be made here, but this is functioning as originally

the pf param treats the entire q param as one big quoted phrase, without any special consideration
of other markup, in order to give a boost to things that *exactly* match the users input in
any of the pf fields. (ie: users cut/paste an exact line of text from the content they are
looking for.

in your use case, it might make sense to use an alternate tokenizer in the fields you want
to use in your "pf" (perhaps something that tokenizes away the leading "+/-" characters) 
but there are other uses cases where people have content that includes those characters, and
they want the phrase boosting part of the query to account for them.

> Dismax handler not handling +/- correctly
> -----------------------------------------
>                 Key: SOLR-2087
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Gabriel Weinberg
> If I do a query like: i'm a walking contradiction it matches pf as text:"i'm_a a_walking
walking contradiction"^2.0, and it matches fine.
> If I do a query like: i'm a +walking contradiction it matches pf as text:"i'm_a a_+walking
+walking contradiction"^2.0 and doesn't match at all.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message