Hey,
I must create my own _id field.
This id is basically a combination of 5 other fields of a document, so for example:
{
"a": 100,
"b": "CUSTOM_TYPE",
"c": 300,
"d": "bla"
"e": "foo",
"value": " 42
}
So my key is basically: "100_CUSTOM_TYPE_300_bla_foo" which is a very bad none sortable and none compressed key, but it is my key. I thought about just doing an md5 on it and use the result, but I am not sure if this is the optimal solution.
I looked at how Elasticsearch implemented the id generation, which is based on flake ids, which are time-based, but this is not my case.
Any idea?
Thanks!