types-exists.asciidoc 394 B

1234567891011121314
  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. HEAD twitter/_mapping/tweet
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. The HTTP status code indicates if the type exists or not. A `404` means
  11. it does not exist, and `200` means it does.