[[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]] === 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 [pass] ++++
++++
interface IndicesCreateRequest extends <> {
  index: <>
  master_timeout?: <>
  timeout?: <>
  wait_for_active_shards?: <>
  aliases?: Record<<>, <>>
  mappings?: <>
  settings?: <>
}

[pass]
++++
++++ [discrete] ==== IndicesCreateResponse [pass] ++++
++++
interface IndicesCreateResponse {
  index: <>
  shards_acknowledged: boolean
  acknowledged: boolean
}

[pass]
++++
++++