mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 02:13:33 -04:00
12 lines
380 B
Text
12 lines
380 B
Text
[[indices-exists]]
|
|
== Indices Exists
|
|
|
|
Used to check if the index (indices) exists or not. For example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
curl -XHEAD 'http://localhost:9200/twitter'
|
|
--------------------------------------------------
|
|
|
|
The HTTP status code indicates if the index exists or not. A `404` means
|
|
it does not exist, and `200` means it does.
|