11min
Create an Index
Indexes are used to provide fast search when querying a data service. With this command, you can create a specific index that can be applied to your query command, for more efficient response times.
- appname - string - path parameters
- servicename - value requirements
- See Parametersο»Ώ
JSON
|
- fields - JSON array describing the index to create
- name - The name of the index
- type - index type - should always be "JSON"
This example creates an index on the fields named title and year. When querying for both title and year, the datastore can use this index for faster response times.
Node.js
Curl
|
Status Code | Description | Example Value |
200 | Successfully created index | {"ok": true} |
500 | Error occured trying to create index | {"ok": false,"msg": "...."} |
Need Help?
You can always reach out to our support team for any additional assistance on slack.