how elasticsearch index works code example Example: elasticsearch show indexes GET /_cat/indices curl -X GET "localhost:9200/_cat/indices?pretty"