# HG changeset patch # User Oleksandr Gavenko # Date 1508226535 -10800 # Node ID 47cadb10f1df22df87760b8507b6b63e604d4213 # Parent 5ee52f8d25b5e1e38cfda6bf3f0171fdbce18f11 Get base information. diff -r 5ee52f8d25b5 -r 47cadb10f1df elasticsearch.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/elasticsearch.rst Tue Oct 17 10:48:55 2017 +0300 @@ -0,0 +1,52 @@ + +=============== + elasticsearch +=============== + +REST syntax conventions +======================= + +To get data in table form use ``/_cat`` endpoint:: + + GET /_cat/nodes + +To pretty print output append query:: + + ?pretty=1 + +Get base information +==================== + +Cluster health:: + + GET /_cat/health?v + +List of nodes in cluster:: + + GET /_cat/nodes?v + GET /_cat/master?v + +List of indexes:: + + GET /_cat/indices + GET /_cat/indices?v + GET /_cat/indices?v&s=index + +List of mappings across all indexes:: + + GET /_mapping + GET /_all/_mapping + +https://www.elastic.co/guide/en/elasticsearch/reference/current/_cluster_health.html + Cluster Health. +https://www.elastic.co/guide/en/elasticsearch/reference/current/_list_all_indices.html + List All Indices. +https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html + cat APIs. + +Managing indexes +================ + +https://www.elastic.co/guide/en/elasticsearch/reference/current/_delete_an_index.html + Delete an Index. +