Is it possible to sort a field that contains a hexadecimal string?

I have a mapping as keyword which contains a hexadecimal string like:
5f4b455cf6b841508fb1fa24

which is a 12 byte object. Is it possible to ask ES to sort on this field by value? I don't want lexicographic order.

For example, given values:

5f4b455cf6b841508fb1fa24 and
5f4b455cf6b841508fb1fa1b

and I want to sort these in descending order, the result should return me

5f4b455cf6b841508fb1fa1b
5f4b455cf6b841508fb1fa24

since the first one is larger than the second one by value.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.