0

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?

1

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.