I added sort but it sort first capital letters than small letter i.e, Azur, Bike, Gixer, Zebra, apple, banana. In this order but i want Azur, apple, banana, Bike, Gixer, Zebra.
Please tell me the solution.
Does your use case support case insensitivity? Then as @dadoonet suggested, adjusting your mappings and using a lowercase filter is the easiest way to resolve this.
No, It does not support case insensitivity.
Result i get : Azur, Bike, Gixer, Zebra, apple, banana.
Result i want: Azur, apple, banana, Bike, Gixer, Zebra.
I want it to be case iinsensitivity. Could you please elaborate How to do it?
So you see here that I have an analyzer that will apply the lowercase filter. I have 2 keyword fields, 1 that uses this analyzer and one that doesn't.
Now let's add a few sample documents:
PUT lowercase_example/_doc/1
{
"value": "Apple",
"raw_value": "Apple"
}
PUT lowercase_example/_doc/2
{
"value": "Banana",
"raw_value": "Banana"
}
PUT lowercase_example/_doc/3
{
"value": "avocado",
"raw_value": "avocado"
}
If you do a terms aggregation on the raw value that doesn't use the lowercase filter, the results are out of the order that you want because they're case insensitive:
Thanks for detailed explanation. It is not elasticsearch, but elastic appsearch. There is no option to use case insensitive facet results in appsearch. Could you please help me to resolve this one in appsearch?
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.