Updating a record in elastic search


(javadeveloper) #1

Hi Team,
I want to completely update a record (no partial update). How do i update it? Do i use a bulk api or update by query can some share me the syntax hard to find in the documentation :frowning:
i have prepared by object which needs to be updated how to i pass it as a payload?


(Alexander Reelsen) #2

Hey,

it is exactly the same as storing the document initially. The document will be overwritten.

--Alex


(Clemens Pleban) #3

You can use the index api to overwrite existing documents
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html


(system) #4

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