incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pankaj Jangid <pankaj.jan...@gmail.com>
Subject Equivalent of "select in, order by"
Date Fri, 13 Apr 2012 15:02:18 GMT
Hi,

I have documents with fields 'date' and 'group'. And this is my view:

byDateGroup: {
  map: function(doc) {
    if (doc.date && doc.group) {
      emit([doc.date, doc.group], null);
    }
  }
}

What would be the equivalent query of this:

select * from docs where group in ("group1", "group2") order by date desc


--

Thanks and regards

Pankaj

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