couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anup Bishnoi <pixelsallo...@gmail.com>
Subject Re: View for multiple IDs
Date Fri, 25 Feb 2011 17:12:39 GMT
Though I wonder what purpose it solves to make a view specifically for three
documents only, but if so, you could check for doc._id in the view function
to be one of those names and emit(doc._id, doc) in that case, doing nothing
otherwise

On Fri, Feb 25, 2011 at 10:34 PM, Simon Metson
<simonmetson@googlemail.com>wrote:

> you can query the view with a post containing a json document like:
>
> {"keys": ["key1", "key2", ...]} See
> http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options
>
> Sent with Sparrow
> On Thursday, 24 February 2011 at 10:39, Martin Hewitt wrote:
> > Hi all,
> >
> > How would I create a view to retrieve documents with the IDs (i.e.
> > non-numeric, non-sequential):
> >
> > ["asdf", "powsf", "aaaa"]
> >
> > I would like the three documents that match these IDs, is this doable
> > in one view or should I just retrieve them individually?
> >
> > Thanks,
> >
> > Martin
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message