summaryrefslogtreecommitdiff
path: root/docs/reference/indices/indices-exists.asciidoc
blob: 422dcba39e91f526b10b7fc4e7ac963e6475a4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[[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.