elasticsearch.rst
changeset 2199 47cadb10f1df
child 2202 37bf9f7b8560
--- /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.
+