when I use this query from dev tools in Kibana
POST some_index/_update_by_query?conflicts=proceed
{
  "script": {
    "source": "ctx._source.view_count = 0",
    "lang": "painless"
  }
}
it will return
{
  "ok": false,
  "message": "backend closed connection"
}
We have about 300,000 records which isn't much.
How should I solve this problem?