This meta issue tracks the various changes relating to offering a "case insensitive" option to various term-level queries (term, terms, prefix, wildcard, regex) at search time. It replaces the previous #53603 which meandered with various discussions.
In query DSL we will offer a new case_insensitive flag which can only be set to true to enable new behaviour. When left unset the existing behaviour is used (which is inconsistent - keyword fields with normalizers normalize query terms while text fields do not). Due to these inconsistencies and lack of guarantees, setting the case_insensitive flag to false will throw an error.
Tasks
This meta issue tracks the various changes relating to offering a "case insensitive" option to various term-level queries (
term,terms,prefix,wildcard,regex) at search time. It replaces the previous #53603 which meandered with various discussions.In query DSL we will offer a new
case_insensitiveflag which can only be set to true to enable new behaviour. When left unset the existing behaviour is used (which is inconsistent -keywordfields with normalizers normalize query terms whiletextfields do not). Due to these inconsistencies and lack of guarantees, setting thecase_insensitiveflag to false will throw an error.Tasks
regexpqueries in elasticsearch DSL - Issue PR Search - add case insensitive support for regex queries. #59441query_stringsupport for/Foo/iregex syntax - PR LUCENE-9445 Add support for case insensitive regex searches in QueryParser apache/lucene-solr#1708