lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Created] (SOLR-4121) balanced single quotes cause parse error in (new) standard QParser
Date Wed, 28 Nov 2012 20:47:59 GMT
Hoss Man created SOLR-4121:

             Summary: balanced single quotes cause parse error in (new) standard QParser
                 Key: SOLR-4121
             Project: Solr
          Issue Type: Bug
          Components: query parsers
            Reporter: Hoss Man
            Assignee: Yonik Seeley
            Priority: Blocker
             Fix For: 4.1

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...
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(
	at org.apache.solr.parser.QueryParser.jj_consume_token(
	at org.apache.solr.parser.QueryParser.Clause(
	at org.apache.solr.parser.QueryParser.Query(
	at org.apache.solr.parser.QueryParser.TopLevelQuery(
	at org.apache.solr.parser.SolrQueryParserBase.parse(

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:

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

View raw message