Closed karindalziel closed 2 years ago
Related to #29
Use this for ascii conversions: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-asciifolding-tokenfilter.html
The custom analyzer they show as their example does basically exactly what we want it to do, although I'd have to read up on the character filter.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-custom-analyzer.html
Ah so I misled myself a little, the analyzers are NOT applicable to keyword fields, but it looks like they have normalizers instead: https://www.elastic.co/guide/en/elasticsearch/reference/current/normalizer.html
When we sort browse pages, it is case and unicode sensitive.
Ideally, we could make it sort so any diacritics sort with the ascii character that most closely matches (so ñ would be sorted with "N" etc)
I have a feeling someone has solved this already. I found a few posts about the case insensitivity. i.e. https://www.technetexperts.com/web/case-insensitive-sorting-in-elasticsearch/ (not the nest post, just an example)