Force update in elastic search using update_by_query without version check

I am getting a version mismatch error in elasticsearch update. But I want to update using my query whether in between select and update there is some change in database or not.

POST /alias_3/_doc/_update_by_query?retry_on_conflict=5
{
	"query": {
		"bool": {
			"filter": {
				"bool": {
					"must": [{"terms":{"id":[2,3]}}]
				}
			}
		}
	},
	"script": {
		"inline":"ctx._source.flag=0",
		"lang": "painless"
	}
}

The above query is showing the following error - contains unrecognized parameter: [retry_on_conflict].

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.