[[reference-indices-exists]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.indices.exists Check indices. Checks if one or more indices, index aliases, or data streams exist. {ref}/indices-exists.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (IndicesExistsRequest, options?): Promise ---- [discrete] ===== `IndicesExistsRequest` [source,ts] ---- interface IndicesExistsRequest extends <> { index: <> allow_no_indices?: boolean expand_wildcards?: <> flat_settings?: boolean ignore_unavailable?: boolean include_defaults?: boolean local?: boolean } ---- [discrete] ===== `IndicesExistsResponse` [source,ts] ---- type IndicesExistsResponse = boolean ----