Hmm, could you explain a bit how it should work? (Because the way I
understand it, you have to iterate over _all_ the docs and check `if
doc.value == xxx` in the client code? That'd be impossible for large data
sets.)

Given /mydb/_design/mydd with the following
views: { foo: { map: function(doc) { emit(doc.value, doc._rev) } } }

Then you fetch this:

/mydb/_design/mydd/_view/foo?key="xxx"

Sure, but only for the doc attribute specified in `foo`. Then you'd have to define views for all the attributes you want to query this way, which is "impossible" for large and/or fast growing data sets. Or what am I missing?

Karel

Reply via email to