code | type | title | description |
---|---|---|---|
true |
page |
create |
Creates an index |
Creates a new index.
create(index, [options]);
Arguments | Type | Description |
---|---|---|
index |
string |
Index name |
options |
object |
Query options |
Additional query options
Property | Type (default) |
Description |
---|---|---|
queuable |
boolean ( true ) |
If true, queues the request during downtime, until connected to Kuzzle again |
Resolves to an object
containing the index creation status
Name | Type | Description |
---|---|---|
acknowledged |
boolean |
Indicates whether the index was successfully created in the Elastic cluster |
shards_acknowledged |
boolean |
Indicates whether the requisite number of shard copies were started for each shard in the index before timing out |
<<< ./snippets/create.js