2014-08-12 06:42:12 -04:00
|
|
|
[[indices-get-index]]
|
2019-07-19 14:35:36 -04:00
|
|
|
=== Get Index
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2016-09-01 13:05:22 -04:00
|
|
|
The get index API allows to retrieve information about one or more indexes.
|
2014-08-12 06:42:12 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-09-01 13:05:22 -04:00
|
|
|
GET /twitter
|
2014-08-12 06:42:12 -04:00
|
|
|
--------------------------------------------------
|
2016-09-01 13:05:22 -04:00
|
|
|
// CONSOLE
|
|
|
|
// TEST[setup:twitter]
|
2014-08-12 06:42:12 -04:00
|
|
|
|
|
|
|
The above example gets the information for an index called `twitter`. Specifying an index,
|
|
|
|
alias or wildcard expression is required.
|
|
|
|
|
|
|
|
The get index API can also be applied to more than one index, or on
|
|
|
|
all indices by using `_all` or `*` as index.
|
2019-01-09 08:17:17 -05:00
|
|
|
|
2019-01-14 16:08:01 -05:00
|
|
|
NOTE: Before 7.0.0, the 'mappings' definition used to include a type name. Although mappings
|
|
|
|
in responses no longer contain a type name by default, you can still request the old format
|
|
|
|
through the parameter include_type_name. For more details, please see <<removal-of-types>>.
|