Currently Mango indexes are defined by feeding a list of fields to the /db/_index
endpoint.
{
"fields": ["address.city", "timestamp", "email"],
"type": "json"
}
Cloudant also allows Lucene-powered indexes to be created in a similar way, this time providing an array of objects defining the attributes to index and their data types: