List

Gets the complete list of indexes handled by Kuzzle.

Arguments

Copied to clipboard!
List(options types.QueryOptions) ([]string, error)
Arguments Type Description
options
QueryOptions
Query options

Options

Additional query options

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

Return

Returns an Array of strings containing the list of indexes names present in Kuzzle or an error

Usage

Copied to clipboard!
indexes, err := kuzzle.Index.List(nil)

if err != nil {
  log.Fatal(err)
} else {
  fmt.Printf("Kuzzle contains %d indexes", len(indexes))
}