-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
SearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't working
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_insensitiveset 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't working
Type
Projects
Status
🆕 New