[
https://issues.apache.org/jira/browse/SOLR-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15600840#comment-15600840
]
Cao Manh Dat commented on SOLR-2087:
------------------------------------
>From cwiki
>https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser
{quote}
The q parameter defines the main "query" constituting the essence of the
search. The parameter supports raw input strings provided by users with no
special escaping. The + and - characters are treated as "mandatory" and
"prohibited" modifiers for terms. Text wrapped in balanced quote characters
(for example, "San Jose") is treated as a phrase. Any query containing an odd
number of quote characters is evaluated as if there were no quote characters at
all.
{quote}
When I try to reprocedure this issue, here are the result
{code}
{
"rawquerystring": "i'm a +walking +contradiction",
"parsedquery_toString": "+(((_text_:i'm)^1.0) ((_text_:a)^1.0)
+((_text_:walking)^1.0) +((_text_:contradiction)^1.0)) (content_txt_en:\"i'm ?
walk contradict\")",
}
{code}
So I think we can close this issue here as "fixed"
> Dismax handler not handling +/- correctly
> -----------------------------------------
>
> Key: SOLR-2087
> URL: https://issues.apache.org/jira/browse/SOLR-2087
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]