CouchDB 2 has a new way to query the database without using views: - https://blog.couchdb.org/2016/08/03/feature-mango-query/ - https://github.com/cloudant/mango Perhaps this could be implemented as two new database functions: - mango_query - mango_index