SDK
SDK Golang v3.x
2

Create #

Create a new index in Kuzzle

Arguments #

Create(index string, options types.QueryOptions) error
ArgumentsTypeDescription
index
string
Index name
options
QueryOptions
Query options

Options #

Additional query options

OptionTypeDescriptionDefault
queuable
bool
Make this request queuable or nottrue

Return #

Return an error or nil if index successfully created.

Usage #

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