mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
Several files in the REST APIs nav section are included using :leveloffset: tags. This increments headings (h2 -> h3, h3 -> h4, etc.) in those files and removes the :leveloffset: tags. Other supporting changes: * Alphabetizes top-level REST API nav items. * Change 'indices APIs' heading to 'index APIs.' * Changes 'Snapshot lifecycle management' heading to sentence case.
18 lines
536 B
Plaintext
18 lines
536 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.
|
|
|
|
IMPORTANT: This request does not distinguish between an index and an alias,
|
|
i.e. status code `200` is also returned if an alias exists with that name.
|