create #
Creates a new collection in Kuzzle via the persistence engine, in the provided index.
You can also provide optional data mappings that allow you to exploit the full capabilities of our
persistent data storage layer, ElasticSearch (check here the mappings capabilities of ElasticSearch).
This method will only update the mappings and/or the settings if the collection already exists.
Arguments #
Arguments | Type | Description |
index | String | Index |
collection | String | Collection |
definition | Map<String, Object> | Describes the collection mappings and the ES index settings |
definition #
An object containing:
Usage #
Arguments #
Arguments | Type | Description |
index | String | Index |
collection | String | Collection |
definition | Map<String, Any>? | Describes the collection mappings and the ES index settings |
Usage #