Retrieve documents from CouchDB based on unique field
How can I retrieve document from CouchDB based on its field, not by ID? The problem is, documents in my system should have numeric IDs, so I add a field called doc_id to saved documents. Native CouchDB ids are too long for me. How can I retrieve document with doc_id = 10, for example? ...