Elasticsearch: update by query: how to handle version conflict? -
i want execute update query on elastic, when other daemons (maybe) updating documents. consequence of version conflict.
i want list of all(not 1 bulk) ids of conflicted documents (for manual retry) or set retry_on_conflict update query.
how can it?
example of query:
"script": { "inline": "ctx._source['msp']=null", "lang": "painless" }, "query": { "bool": { "must_not": { "terms": { "msp-rev": [44] } }, "must" : { "exists": { "field": "msp" } } } }
Comments
Post a Comment