Elastic/Kibana version: 7.7(Platinum)
In my case I have version fields that look like that "NAME-10.1.0" or "NAME-10.1.1_beta".
So when I sort them in a visualisation(Histogram), they are sorted like this:
NAME-20.2.0 (This should be way up)
Is there any way to sort string versions correctly?
I'm not sure why you think
NAME-20.2.0 should be way up. The names are sorted in a lexicographic order, not semantical.
Thank you for your response.
So, we have to change the way we index this field.
What is your use-case? Would you simply like to see this sorted in a descending order?
I want semantic version sorting(ascending), so it will look like that:
Yes, for that the best would be to store the versions in a separate field in ES.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.