elasticsearch.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 17 Oct 2017 10:48:55 +0300
changeset 2199 47cadb10f1df
child 2202 37bf9f7b8560
permissions -rw-r--r--
Get base information.


===============
 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.