Hello everybody,
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).
Not sure if there's a better option but in modern versions you can add an inner top_hits agg and display the first hit of each bucket from which you can retrieve the original value non formatted.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.