Currently we have used the elastic sort sorting capability in our Java application for sorting or a field called description, but the sort does not return a correct order.
Our field consists of special charecters, (#,$,%,&, and so on)...
What changes should we make, we have added the below code for sorting
Please format your code using </> icon as explained in this guide. It will make your post more readable.
Or use markdown style like:
```
CODE
```
but the sort does not return a correct order.
What does it return? Why do you think it's not the correct order? What would you expect?
Could you provide a full recreation script as described in
It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.
Anyway, it's often a question of analyzers. You can analyze the same text for different purposes with subfields (aka multifields) and use one method for searching and the other for sorting.
Actually the current problem is on the Production environment that we are facing, We are not getting the sorting results of the description as per the sorting order(ASC/DESC).
Basically the description contains alphabets, special charecters, white spaces, numbers and everything
And we have been trying sorting by description with the above code, which is returning large list of strings which are in a order.
Now I would like to know whether elastic search provides the sorting order(handles the special charecters sorting, numbers inside it everything inside it) by default or should we customize the script
As we are on production and the functionality has gone long ago, I am not able to get the script.
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.