2013-08-28 19:24:34 -04:00
|
|
|
[[indices-exists]]
|
2019-07-19 14:35:36 -04:00
|
|
|
=== Indices Exists
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
Used to check if the index (indices) exists or not. For example:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-08-18 06:36:53 -04:00
|
|
|
HEAD twitter
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
2016-08-18 06:36:53 -04:00
|
|
|
// CONSOLE
|
|
|
|
// TEST[setup:twitter]
|
2013-08-28 19:24:34 -04: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 16:14:40 -05: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.
|