Valentin
Valentin

Reputation: 373

update non-existing document in elasticsearch

Is it possible to create a new document instead of getting an error when trying to update a non-existing document in elasticsearch? I know I could check first but I would love to save that one additional call per document.

Upvotes: 3

Views: 2094

Answers (1)

Jagdeep
Jagdeep

Reputation: 312

Kimchy has implemented upsert(update-insert) in latest release 0.19.5 Please refer to this for more details

Upvotes: 4

Related Questions