mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
This will help remove types as we will need `{index}/{id}` to tell whether a document exists. Relates #15613
15 lines
383 B
Plaintext
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.
|