petrsimon opened a new issue, #14378: URL: https://github.com/apache/lucene/issues/14378
### Description Hi, I'm implementing regex search in java app with Elasticsearch 8.* and I've noticed unexpected behaviour with `CASE_INSENSITIVE` flag. It seems that Lucene ignores the flag in case of character ranges and I'm getting the following results when searching fields analyzed by KeywordAnalyzer: ``` "[abc]+" -> "abc", "ABC" "[ABC]+" -> "abc", "ABC" "[a-c]+" -> "abc" "[A-C]+" -> "ABC" ``` Reproduced in https://github.com/petrsimon/lucene-regex ### Version and environment details _No response_ -- 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