types-exists.asciidoc 589 B

1234567891011121314151617
  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,js]
  6. --------------------------------------------------
  7. HEAD twitter/_mapping/tweet
  8. --------------------------------------------------
  9. // CONSOLE
  10. // TEST[setup:twitter]
  11. // TEST[warning:Type exists requests are deprecated, as types have been deprecated.]
  12. The HTTP status code indicates if the type exists or not. A `404` means
  13. it does not exist, and `200` means it does.