types-exists.asciidoc 382 B

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