Create or Update a document

I'm currently using a 2.4 ES index, and I have to update or add documents everyday. Currently, the index is deleted and remade everyday and I think that's not the best choice here ...

So is there a function which could help me here ? All my documents have a specific ID (different from the one givent by ES), and I would like to create a document if the corresponding ID doesn't exist yet or update the document.

PS: I'm using ES in a Python project, so I'm currently using the ES python package.



Is suppose you are looking for

1 Like

Perfect, thank you ! Upserts, that was exactly the word I needed !

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