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
Post a Comment