Open
Description
Describe the bug
Case insensitive regexp query on a wildcard field does not work.
Related component
Search
To Reproduce
Based on #15855
- Create a simple index contains a wildcard field
PUT case_test { "mappings": { "properties": { "wildcard": { "type": "wildcard" } } } }
- Bulk insert documents containing capital letters
PUT _bulk?refresh=true {"index": {"_index": "case_test"}} {"wildcard": "TtAa"} {"index": {"_index": "case_test"}} {"wildcard": "ttaa"} {"index": {"_index": "case_test"}} {"wildcard": "TTAA"}
-
Perform regexp search on the wildcard field with
case_insensitive
set totrue
.POST case_test/_search { "query": { "regexp": { "wildcard": { "value": "TtAa", "case_insensitive": true } } } }
-
Check results
Expected behavior
All documents should be returned, but not.
Additional Details
Host/Environment (please complete the following information):
- Version 2.18.0
Metadata
Metadata
Assignees
Type
Projects
Status
🆕 New