lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3703) Escape character which is in the query, is getting ignored in solr 3.6 with lucene parser
Date Fri, 03 Aug 2012 17:25:03 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428244#comment-13428244
] 

Jack Krupansky commented on SOLR-3703:
--------------------------------------

You are probably being caught by the "autoGeneratePhraseQueries now defaults to false silently"
bug/feature. Try adding autoGeneratePhraseQueries="true" to your text field type (the fieldType,
not the field.)

See SOLR-2015 for details.

The space is passed properly to the analyzer since it is escaped, but when the analyzer returns
more than one term, the query parser is obeying the autoGeneratePhraseQueries option which
is now defaulted to not do what you used to see.

Just to clarify, what release of Solr were you using where the query worked as expected?

                
> Escape character which is in the query, is getting ignored in solr 3.6 with lucene parser
> -----------------------------------------------------------------------------------------
>
>                 Key: SOLR-3703
>                 URL: https://issues.apache.org/jira/browse/SOLR-3703
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.6
>         Environment: Linux
>            Reporter: srinivas
>
> I noticed, escape character which is in the query, is getting ignored in solr 3.6 with
lucene parser. If I give edismax, then it is giving expected results for the following query.

> select?q=author:David\ Duke&defType=lucene 
> Would render the same results as: 
> select?q=author:(David OR Duke)&defType=lucene 
> But 
> select?q=author:David\ Duke&defType=edismax 
> Would render the same results as: 
> select?q=author:"David Duke"&defType=lucene 
> Regards
> Srini

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message