[[reference-indices-create]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.create Create an index. Creates a new index. {ref}/indices-create-index.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (IndicesCreateRequest, options?): Promise ---- [discrete] ===== `IndicesCreateRequest` [source,ts] ---- interface IndicesCreateRequest extends <> { index: <> master_timeout?: <> timeout?: <> wait_for_active_shards?: <> aliases?: Record<<>, IndicesAlias> mappings?: MappingTypeMapping settings?: IndicesIndexSettings } ---- [discrete] ===== `IndicesCreateResponse` [source,ts] ---- interface IndicesCreateResponse { index: <> shards_acknowledged: boolean acknowledged: boolean } ----