Working with multi-dimensional indexes
Create a multi-dimensional index
POST
/_db/{database-name}/_api/index
Creates a multi-dimensional index for the collection
collection-name
, if
it does not already exist. The call expects an object containing the index
details.HTTP Headers
Request Body application/json object
Responses
Examples
Creating a multi-dimensional index
curl -X POST --header 'accept: application/json' --data-binary @- --dump - 'http://localhost:8529/_api/index?collection=intervals' <<'EOF'
{
"type": "zkd",
"fields": [
"from",
"to"
],
"fieldValueTypes": "double"
}
EOF