2013-08-29 01:24:34 +02:00
|
|
|
[[indices-exists]]
|
|
|
|
== Indices Exists
|
|
|
|
|
|
|
|
Used to check if the index (indices) exists or not. For example:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-08-18 12:36:53 +02:00
|
|
|
HEAD twitter
|
2013-08-29 01:24:34 +02:00
|
|
|
--------------------------------------------------
|
2016-08-18 12:36:53 +02:00
|
|
|
// CONSOLE
|
|
|
|
// TEST[setup:twitter]
|
2013-08-29 01:24:34 +02: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-01 22:14:40 +01: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.
|