Creating my own binary sorting collation, how to store in Elastic?

I have my own binary fields that store a sorting collation in my current database.
These are created with some very specific rules.

I'd like to store these in Elastic and have Elastic sort by that field.
But it appears that the binary field type gets stored as base64, which screws up the sort order.

What is the best way to store this binary data and sort in Elastic?

But how do you sort binary content?
I mean that I can't see any solution but implementing your own plugin which could do that.

What kind of binary content is that? Could you extract some textual information from it or numbers or anything that could help sorting?

Nvm, figured out that converting binary to hex gives me the results I need.
Cheers!

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