I have a data ingest that contains user input and want to wildcard search it. But I need the search to be case insensitive.
"normalizer": {
"lowercase_normalizer": {
"type": "custom",
"char_filter": [],
"filter": ["lowercase"]
}
}
So I used to have this normalizer in place on a "keyword" field but that is really slow compared to the new 'wildcard' data type (allegedly).
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "lowercase_normalizer"
},
"wildcard": {
"type": "wildcard",
"normalizer": "lowercase_normalizer"
}
}
The above however returns an error because normalizers aren't allowed in wildcard data types.
Any suggestions for how to lowercase, wildcard search using the wildcard datatype?