Hello everyone,
Im trying to create spatial view in design document as it described there just replaced original view with spatial declaration as it described there
when i do my PUT everything looks fine, no errors or anything, when i try to access my _spatial i get
http GET mydomain.com:4985/sync_gateway/_design/spatialphoto/_spatial/points
HTTP/1.1 404 Not Found
Content-Length: 44
Content-Type: application/json
Date: Sat, 04 Apr 2015 18:01:04 GMT
{
“error”: “not_found”,
“reason”: “unknown URL”
}
spatialphoto.js
{
“spatial”:
{
“points”:{
“map”:“function(doc, meta) { if (doc.loc) { emit({ type: “Point”, coordinates: doc.loc}, [meta.id, doc.loc]);}}”
}
}
}
When i put ordinal view in same design document, everything works as expected. When i put this design document in couchbase directly, everything is fine also. Is sync gateway support geospatial views at all?
Or i do something wrong?