Partial update in Index bulk

when using index in bulk API, Is there away for partial update in case of document already exists ?

Welcome.

The bulk API supports using update requests. See the very first example in the documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html

But you have to know that an Update request is exactly like an index request behind the scene. I'd just send the full document instead of trying updates unless you really have a use case for this.

i want to use

POST _bulk
{ "index" : { "_index" : "test", "_id" : "1" } },
{ "field1" : "value1", "field2" : "value2" }

but in case of this document already exist i want to update filed1 only
Is there a way to do that using index to limit some fields for applying update in case of document exist ?
@dadoonet

Why do you want to do that?

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