I am working on the Apache CouchDB using the cURL. I have created a database added database files & created a view. I have made the following configurations for mapping the keys to the view.
function (doc) {
emit([doc.key1, doc.key2, doc.key3], doc);
}
I would like to access the database file using a combination of keys. i.e. In the above case, key1 is fixed in my URL's get request. but I don't have control over key2 & key3(sometimes I have key2 & rest I have key3).
Will you please help me to know, How can I access the database with a combination of key1-key2 OR key1-key3?