lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomislav Gountchev (JIRA)" <>
Subject [jira] Created: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException
Date Fri, 19 May 2006 03:41:35 GMT
Escaped quotes inside a phrase cause a ParseException

         Key: LUCENE-573
     Project: Lucene - Java
        Type: Bug

  Components: QueryParser  
    Versions: 1.9    
 Environment: Debian Sarge, Sun JDK 1.4.2
    Reporter: Tomislav Gountchev
    Priority: Minor

QueryParser cannot handle escaped quotes when inside a phrase. Escaped quotes not in a phrase
are not a problem. This can be added to TestQueryParser.testEscaped() to demonstrate the issue
- the second assert throws an exception:

assertQueryEquals("a \\\"b c\\\" d", a, "a \"b c\" d");
assertQueryEquals("\"a \\\"b c\\\" d\"", a, "\"a \"b c\" d\"");

See also this thread:

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

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

View raw message