When I used _update_by_query without conflicts option, It caused version_conflict_engine_exception error.
Reading this document, I found that conflicts=proceed can be passed along with the request to avoid this error.
Though I am bit confused with the wording in the documentation. I understand that once conflicts=proceed is specified, it won't abort in between when version conflict occurs.
But will it update those doc where conflict occurred or it will not update those doc and will update only doc where there were no conflicts.
Note: I am using elasticsearch 5.6
version conflict occurs when a doc have a mismatch in ID or mapping or fields type. update_by_query will stop when a single doc have conflict and update would not available for rest of docs in that index and next indexes. (of course some doc have been updated) if you use conflict=proceed it will not update only the docs have conflict (just skip that doc not entire index).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With