Reputation: 73028
As the 2.0 docs say, updates performed are partial - they do not override the whole document but only merge the existing one with the value given.
Is there a way to perform a full update using this API?
Upvotes: 0
Views: 180
Reputation: 217584
Yes, you can simply re-index the document using client.index
, as if it was a new document, but using the same id.
A new version of the document will be indexed and stored, which will override the one stored previously.
Upvotes: 1