OpenSearch/docs/reference/indices/indices-exists.asciidoc
Adrien Grand a4ea7e7223 Switch indices.exists_type from {index}/{type} to {index}/_mapping/{type}. #20055
This will help remove types as we will need `{index}/{id}` to tell whether a
document exists.

Relates #15613
2016-08-19 09:18:24 +02:00

15 lines
383 B
Plaintext

[[indices-exists]]
== Indices Exists
Used to check if the index (indices) exists or not. For example:
[source,js]
--------------------------------------------------
HEAD twitter
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]
The HTTP status code indicates if the index exists or not. A `404` means
it does not exist, and `200` means it does.