Hello,
I've been working through implementing a case insensitive sort on a string
field. My initial problem was the inability to sort on an analysed field
as discussed here:
With the sort field in question now defined as a multi_field, I'm in
business:
"last_name": {
"type": "multi_field",
"fields": {
"last_name": {
"type": "string",
"boost": 2,
"analyzer": "name"
},
"untouched": {
"type": "string",
"index": "not_analyzed",
"include_in_all": false
}
}
}
However, when sorting on last_name.untouched, the sort applied is case
sensitive. I seem to be missing out on a solution that seem to be hinted
at here:
http://elasticsearch-users.115913.n3.nabble.com/multi-field-and-sort-td3548822.html
http://elasticsearch-users.115913.n3.nabble.com/Case-insensitive-sort-td843856.html
Is the approach taken with the multi_field wrong, or is there another layer
to solving this problem that I am missing?
Thanks!
Mike