I want to execute update by query on elastic, when other daemons are (maybe) also updating documents. The consequence of this is version conflict.
I want to get list of all(not only one bulk) ids of conflicted documents (for manual retry) or set up retry_on_conflict for update by query.
How can I do it?
Example of my query:
"script": {
"inline": "ctx._source['msp']=null",
"lang": "painless"
},
"query": {
"bool": {
"must_not": {
"terms": {
"msp-rev": [44]
}
},
"must" : {
"exists": {
"field": "msp"
}
}
}
}