SDK
SDK Golang v1.x
1

# Create

Create a new index in Kuzzle

# Arguments

Copied to clipboard!
Create(index string, options types.QueryOptions) error
Arguments Type Description
index
string
Index name
options
QueryOptions
Query options

# Options

Additional query options

Option Type Description Default
queuable
bool
Make this request queuable or not true

# Return

Return an error or nil if index successfully created.

# Usage

Copied to clipboard!
err := kuzzle.Index.Create("nyc-open-data", nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("index created")
}