Version_conflict_engine_exception errors with status 409

Hello, I clean my indexes in the elastic with the script below:

POST /aplicacao/_delete_by_query
{
"query": {
"range": {
"timeLog": {
"lte": "now-5M"
}
}
}
}

"aplicacao


" is the name of the index, I leave only the last 5 months and delete the previous ones, but now version_conflict_engine_exception errors with status 409 are appearing.

Is there any parameter that I can put in the script so that it can proceed with the delete?

I attached the printout of the error

See the conflicts parameter in the docs - Delete by query API | Elasticsearch Guide [8.6] | Elastic

Also you should really be using time based indices here (via ILM), rather than this approach.

Hello, thank you very much for the reply..

I took a look at the link that passed referring to Delete by query ...

Is there any parameter that I can insert in my delete query to delete it even if there is a conflict?

Remembering that I am deleting older data and leaving only the current 5 months, would there be any problem deleting even having conflicts?

Thanks !!

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