原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-types-exists.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/indices-types-exists.html

Type exists APIedit

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 twitter/_mapping/tweet

Requestedit

HEAD /<index>/_mapping/<type>

Path parametersedit

<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 codesedit

200
Indicates all specified mapping types exist.
404
Indicates one or more specified mapping types do not exist.