gcbaptista opened a new issue, #11800:
URL: https://github.com/apache/lucene/issues/11800

   ### Description
   
   Since release `9.1.0`, Lucene's SyntaxParser have been uncapable to parse 
`@` in a query, throwing a Syntax Error (`INVALID_SYNTAX_CANNOT_PARSE`).
   Version `9.0.0` is the last I tested that still can parse this character.
   
   Two similar examples that throw `INVALID_SYNTAX_CANNOT_PARSE` in `9.1.0`, 
but not in `9.0.0`:
    - `\\ an@tomy`
    - `\\ @natomy`
   
   Leaving some log dump here:
   `Syntax Error, cannot parse \\ an@tomy:  
   INVALID_SYNTAX_CANNOT_PARSE: Syntax Error, cannot parse \\ an@tomy:  
        at 
org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser.generateParseException(StandardSyntaxParser.java:2093)
        at 
org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser.jj_consume_token(StandardSyntaxParser.java:1961)
        at 
org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser.TopLevelQuery(StandardSyntaxParser.java:115)
        at 
org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser.parse(StandardSyntaxParser.java:92)
        at 
org.apache.lucene.queryparser.flexible.core.QueryParserHelper.parse(QueryParserHelper.java:214)
        at 
org.apache.lucene.queryparser.flexible.standard.StandardQueryParser.parse(StandardQueryParser.java:280)
   ...`
   
   
   
   ### Version and environment details
   
   - JDK: temurin-17.0.3
   - OS: MacOS Monterey 12.6 and alpine-java17:latest (docker image)
   - Lucene: 9.1.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to