Suraj Dalvi
Suraj Dalvi

Reputation: 1078

Elasticsearch updateByQuery with wait_for_completion

I am using updateByQuery to update documents but I am getting version conflicts error. How I can handle this error.Can I use wait_for_completion option in elastic search to avoid version conflicts error? is any other solution to handle version conflicts error in updateByQyery?

Upvotes: 1

Views: 797

Answers (1)

Val
Val

Reputation: 217474

You simply need to specify conflicts=proceed in the URL, like this

POST your-index/_update_by_query?conflicts=proceed

Upvotes: 1

Related Questions