I have a document that is inserted into elasticsearch under the index:
A day later another event comes in and I have to update that document I inserted yesterday.
When trying to update I get a status 404 meaning it cannot find that record is my guess.
When the inserted document is updated on the same day and thus also under the same index it finds it and updates it without any errors.
How can I get hold of the index for the document I am trying to update so that I can dynamically use it in the output when updating?