types-exists.asciidoc 583 B

12345678910111213141516
  1. [[indices-types-exists]]
  2. === Types Exists
  3. deprecated[7.0.0, Types are deprecated and are in the process of being removed. See <<removal-of-types>>.]
  4. Used to check if a type/types exists in an index/indices.
  5. [source,console]
  6. --------------------------------------------------
  7. HEAD twitter/_mapping/tweet
  8. --------------------------------------------------
  9. // TEST[setup:twitter]
  10. // TEST[warning:Type exists requests are deprecated, as types have been deprecated.]
  11. The HTTP status code indicates if the type exists or not. A `404` means
  12. it does not exist, and `200` means it does.