CouchDB views are more like CREATE INDEX than SELECT: https://stackoverflow.com/a/9237735