Cloudant Query

Declarative index definition and query

Creating an index is as simple as POSTing an appropriate JSON object to the /database/_index endpoint.

{
    "index": {
        "fields": [
            "Person_name",
            "Movie_year"
        ]
    }
}

You can see the various indexes Query is using by GETing /database/_index. You get a response like: