I am trying to update a document's nested type field using update_by_query. I am using the following script query:
POST test/_update_by_query
{
"script": {
"source": "ctx._source.address = params.address",
"params": {
"address": [{"city":"Mumbai"}]
}
},
"query": {
"bool": {
"must": [
{
"term": {
"uid": "b123"
}
}
]
}
}
}
But I am getting the following error:
version conflict, required seqNo [607], primary term [16]. current document has seqNo [608] and primary term [16]
What is the reason for this issue and How I can fix this? Instead of _update_by_query can I use any other query here? Please help me here