<commit_before>[[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.<commit_msg>documentation fix: index exists is ambiguous (#28460)<commit_after>[[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.
{'fraction_non_alphanumeric': 0.2702970297029703, 'fraction_numerical': 0.019801980198019802, 'mean_word_length': 1.8640226628895185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6605248', 'n_tokens_mistral': 260, 'n_tokens_neox': 241, 'n_words': 117}