Elasticsearch之index_closed_exception

The opening and closing index


Index Close

POST /index_name/_close

 

Try to insert data

PUT /shakespeare/_doc/1
{
"title":"kibana"
}

 

At this time, the following error will be reported

{
  "error": {
    "root_cause": [
      {
        "type": "index_closed_exception",
        "reason": "closed",
        "index_uuid": "vpyc3jt9TbGYFm96KUPlfw",
        "index": "shakespeare"
      }
    ],
    "type": "index_closed_exception",
    "reason": "closed",
    "index_uuid": "vpyc3jt9TbGYFm96KUPlfw",
    "index": "shakespeare"
  },
  "status": 400
}

 

Reopen Index

POST /index_name/_open

 

Back to Results

{
  "acknowledged": true,
  "shards_acknowledged": true
}

The index is above the opening and closing!

Guess you like

Origin www.cnblogs.com/ixan/p/11770535.html