indices.create

edit
client.indices.create([params, [callback]])

Create an index in Elasticsearch.

Check the API Conventions and the elasticsearch docs for more information pertaining to this method.

Params

includeTypeName

Boolean — Whether a type should be expected in the body of the mappings.

waitForActiveShards

String — Set the number of active shards to wait for before the operation returns.

timeout

DurationString — Explicit operation timeout

masterTimeout

DurationString — Specify timeout for connection to master

index

String — The name of the index

body

Object, JSON — An optional request body, as either JSON or a JSON serializable object. See the elasticsearch docs for details about what can be specified here.

back to top