Type exists API
Deprecated in 7.0.0.
Types are deprecated and are in the process of being removed. See Removal of mapping types.
Checks if a mapping type exists.
HEAD my-index-000001/_mapping/message
Request
HEAD /<index>/_mapping/<type>
Path parameters
-
<index> - (Optional, string) Comma-separated list or wildcard expression of index names used to limit the request.
-
<type> - (Optional, string) Comma-separated list or wildcard expression of types used to limit the request.
Response codes
-
200 - Indicates all specified mapping types exist.
-
404 - Indicates one or more specified mapping types do not exist.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-types-exists.html