You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2013/01/05 02:36:13 UTC
[jira] [Resolved] (SOLR-4121) balanced single quotes cause parse
error in (new) standard QParser
[ https://issues.apache.org/jira/browse/SOLR-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-4121.
--------------------------------
Resolution: Fixed
Committed. Thanks for test!
> balanced single quotes cause parse error in (new) standard QParser
> ------------------------------------------------------------------
>
> Key: SOLR-4121
> URL: https://issues.apache.org/jira/browse/SOLR-4121
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Reporter: Hoss Man
> Assignee: Yonik Seeley
> Priority: Blocker
> Fix For: 4.1, 5.0
>
> Attachments: SOLR-4121-test.patch
>
>
> The parser changes introduced in SOLR-4093 cause the standard parser to freak out anytime there are blanaced single quotes in a query string.
> the expected behavior is that single quotes should not be considered special to the parser, and should be ignored and passed down to the appropriate field analyzers
> Example of error...
> http://localhost:8983/solr/select?q=%27zz+xx%27&debugQuery=true
> {noformat}
> Caused by: org.apache.solr.parser.ParseException: Encountered " <SQUOTED> "\'zz xx\' "" at line 1, column 0.
> Was expecting one of:
> <NOT> ...
> "+" ...
> "-" ...
> <BAREOPER> ...
> "(" ...
> "*" ...
> <QUOTED> ...
> <TERM> ...
> <PREFIXTERM> ...
> <WILDTERM> ...
> <REGEXPTERM> ...
> "[" ...
> "{" ...
> <LPARAMS> ...
> <NUMBER> ...
> <TERM> ...
> "*" ...
>
> at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:649)
> at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:531)
> at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:216)
> at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107)
> at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
> at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:159)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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