nosql - CouchDB filtering on key array -


given couchdb view emits this:

emit([doc.name, doc.date], doc) 

how filter on multiple doc.name values? below doesn't seem work.

keys=[["name1",{}],["name2",{}],["name3",{}]] 

when specify keys parameter, specifying exact match. assuming want range query (every document name="name1" no matter date) need query startkey , endkey:

?startkey=["name1", ""]&endkey=["name1", {}] 

and have repeat query each name.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -