[Elasticsearch] List all indexes and optimize it.

When we deleted the indexes, the data were just marked by deleted.
We can list all indexes to show status.

It will show the health, index name, pri, rep, docs.count, docs.deleted, store.size, pri.store.size.

If we want to clear the deleted indexes, we can optimize it.

And it will reply this message.

Then when we list all indexes again, we will see the deleted indexes are gone.

This entry was posted in Elasticsearch. Bookmark the permalink.