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].