indices.create

edit
client.indices.create({
  index: string,
  wait_for_active_shards: string,
  timeout: string,
  master_timeout: string,
  update_all_types: boolean,
  body: object
})

Reference

index

string - The name of the index

wait_for_active_shards or waitForActiveShards

string - Set the number of active shards to wait for before the operation returns.

timeout

string - Explicit operation timeout

master_timeout or masterTimeout

string - Specify timeout for connection to master

update_all_types or updateAllTypes

boolean - Whether to update the mapping for all fields with the same name across all types or not

body

object - The configuration for the index (settings and mappings)