I think I'm wrong using Elastic custom analyzer (version 1.7 ).
I use a lowercase analyzer to sort a field in case insensitive way. I found a problem when I analyze the aggregations (I need them to see the list of values). I see aggregation values in lowercase. If I try to query the not analyzed field in the aggregations, I see the difference between upper and lowercase letters but the sort no (first the words that starts with uppercase words and after the lowercase).
There is a way to solve the problem?