indices-exists.asciidoc 383 B

123456789101112
  1. [[indices-exists]]
  2. == Indices Exists
  3. Used to check if the index (indices) exists or not. For example:
  4. [source,js]
  5. --------------------------------------------------
  6. curl -XHEAD -i 'http://localhost:9200/twitter'
  7. --------------------------------------------------
  8. The HTTP status code indicates if the index exists or not. A `404` means
  9. it does not exist, and `200` means it does.