indices-exists.asciidoc 536 B

1234567891011121314151617
  1. [[indices-exists]]
  2. === Indices Exists
  3. Used to check if the index (indices) exists or not. For example:
  4. [source,js]
  5. --------------------------------------------------
  6. HEAD twitter
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. The HTTP status code indicates if the index exists or not. A `404` means
  11. it does not exist, and `200` means it does.
  12. IMPORTANT: This request does not distinguish between an index and an alias,
  13. i.e. status code `200` is also returned if an alias exists with that name.