Elasticsearch Index Management: Quick Intro and Examples
Last updated:Table of Contents
You can interact with indices on your elasticsearch cluster in many ways.
All examples are compatible with Elasticsearch version 2.x
Here are some example on how to talk to them using the HTTP API.
All examples are in
Sense
format, so that you can just copy and paste into Sense (Available as a Chrome plugin or a Kibana app)
List indices
GET /_stats/indexes
P.S.: for more detailed information, do GET /_mappings
instead
View index information
GET /my_index/_mappings
Create index
POST /my_index
Delete index
DELETE /my_index
Close index
(put an index on standby - it can't serve data but can be reopened later)
POST /my_index/_close
Open index
POST /my_index/_open