HI all,
So I was reading a bit about the documentation for the api update_by_query.
From my understanding of the conflict
, parameter.
You can have 2 behaviours
-
Abort
, that will stop at the first issue and report on the failures within a batch -
Proceed
, if the issue is version conflict do not stop.
But none of those behaviour say the failures array is going to be empty.
When I am doing some tests (purposefully creating version errors).
-
Abort
does fill thefailures
array with doc's info -
Proceed
does not.
I am not sure this is a bug / feature.
But my question is, how would you go with the following use case.
I need to update some documents and get version conflit from time to time. I would still like those documents updated. What is the best way to recover from those situations ?
- Using
Abort
means some docs that could have been updated were not and I don't know which one - Using
Proceed
means some docs have not been updated, I don't know which ones.
What do you think ?