benchaplin commented on PR #13323: URL: https://github.com/apache/lucene/pull/13323#issuecomment-2083680863
I was thinking a fix like this could work: ```java | <RANGE_GOOP: (~[ " ", "]", "}" ] | "\\ " | "\\]" | "\\}" )+ > ``` simply allowing the range term to continue parsing through an escaped space or closing bracket. "Breaking" changes: - This would permit some queries that previously threw exceptions (like the one described in the original issue) - I'm trying to think of a query that was permitted and now would break (all existing unit tests pass). My first thought was a range query ending with an escaped bracket, however those are disallowed by the `Term can not end with escape character` rule. Any thoughts? -- 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 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