2013-08-28 19:24:34 -04:00
|
|
|
[[indices-exists]]
|
|
|
|
== Indices Exists
|
|
|
|
|
|
|
|
Used to check if the index (indices) exists or not. For example:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2015-03-21 03:54:51 -04:00
|
|
|
curl -XHEAD -i 'http://localhost:9200/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.
|