Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.51 KB

File metadata and controls

44 lines (30 loc) · 1.51 KB
code type title description
true
page
create
Creates an index

create

Creates a new index.


create(index, [options]);

Arguments Type Description
index
string
Index name
options
object
Query options

options

Additional query options

Property Type
(default)
Description
queuable
boolean

(true)
If true, queues the request during downtime, until connected to Kuzzle again

Resolves

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

Usage

<<< ./snippets/create.js