2014-08-12 06:42:12 -04:00
|
|
|
[[indices-get-index]]
|
2019-08-23 11:14:51 -04:00
|
|
|
=== Get index API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get index</titleabbrev>
|
|
|
|
++++
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2019-08-23 11:14:51 -04:00
|
|
|
Returns information about one or more indexes.
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2014-08-12 06:42:12 -04:00
|
|
|
--------------------------------------------------
|
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
|
|
|
// TEST[setup:twitter]
|
2014-08-12 06:42:12 -04: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>>.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /<index>`
|
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
`<index>`::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
(Required, string) Comma-separated list or wildcard expression of index names
|
|
|
|
used to limit the request.
|
|
|
|
|
|
|
|
Use a value of `_all` to retrieve information for all indices in the cluster.
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
|
2020-02-24 05:57:32 -05:00
|
|
|
+
|
|
|
|
Defaults to `true`.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
|
|
|
|
+
|
|
|
|
Defaults to `open`.
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=include-defaults]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=include-type-name]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-ignore-unavailable]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
|
|
|
|
|
2020-02-24 05:57:32 -05:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|