I've create this design document in the tours
database:
{
"_id": "_design/spatial",
"_rev": "1-a767cce1bb12d7048a2b577000884878",
"spatial": {
"geometry": "function(doc) { return emit([doc.geometry.features[0].geometry], null); }"
}
}