An index is like a "database" in a relational database. It has a mapping which defines multiple types.
An index is a logical namespace which maps to one or more primary shards and can have zero or more replica shards.
ElasticSearch indexes are collections of data that retain the same characteristics.
How to list all indexes in ElasticSearch?
To list all indexes present in ElasticSearch, run the following command:
curl 'localhost:9200/_cat/indices?v'
To create indexes in ElasticSearch, run the following command:
curl -XPUT 'localhost:9200/yournewindex?test'
To delete an index from ElasticSearch, run the command below:
curl -XDELETE 'localhost:9200/yournewindex?test'
