2013-08-29 07:24:34 +08:00
|
|
|
[[indices-exists]]
|
|
|
|
== Indices Exists
|
|
|
|
|
|
|
|
Used to check if the index (indices) exists or not. For example:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-08-18 18:36:53 +08:00
|
|
|
HEAD twitter
|
2013-08-29 07:24:34 +08:00
|
|
|
--------------------------------------------------
|
2016-08-18 18:36:53 +08:00
|
|
|
// CONSOLE
|
|
|
|
// TEST[setup:twitter]
|
2013-08-29 07:24:34 +08:00
|
|
|
|
|
|
|
The HTTP status code indicates if the index exists or not. A `404` means
|
|
|
|
it does not exist, and `200` means it does.
|
2018-02-02 05:14:40 +08:00
|
|
|
|
|
|
|
IMPORTANT: This request does not distinguish between an index and an alias,
|
|
|
|
i.e. status code `200` is also returned if an alias exists with that name.
|