My index looks something like this:
{
"mappings": {
"properties": {
"id": { "type": "integer" },
"clientId": { "type": "integer"},
"status": { "type": "keyword" },
"registration": { "type": "keyword" },
"model": { "type": "keyword" },
"make": { "type": "keyword" },
"series": { "type": "keyword" },
"variant": { "type": "keyword" },
}
}
I'm mostly using facets for my search so case sensitivity doesn't matter too much, however, i do have a few use-cases where i'd like the elastic search query to be case insensitive but it would like to results to be returned in their original form to display on the UI.
For example, if I've got a document where make: Ford i want it to match for all of these - 'Ford', 'ford', 'FORD' etc but when the actual document is returned i want it to keep the original value which is 'Ford'
What's the best way to do this?