Elasticsearch sort based on a string with special characters


(Emer) #1

I would like to sort all the results I get from a query.
I would like to sort them in either ascending or descending order.
This is working perfect in most cases.
However I have noticed if I sort on a field that is a string that contains special characters then is does not work.
Is there a way to sort on a field which is a string containing special characters.


(David Pilato) #2

You probably need to apply an asciifolding normalizer. See https://www.elastic.co/guide/en/elasticsearch/reference/5.5/analysis-normalizers.html

But it depends on what you are calling "special". May be worth a fully working example as described in About the Elasticsearch category?


(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.