Hi all,
I'm trying to use update_by_query to update a field in each document but I keep failing due to a version conflict. I don't understand why I am getting version conflicts as I know nothing else is running against the documents I want to update. Any ideas?
The query I'm passing to ES Client in Ruby is:
{ "script": { "inline": "ctx._source['salesforce_account_status'] = '#{account[:salesforce_account_status]}'", "lang": "painless" }, "query": { "term": { "account_id": account[:account_id] } } }