couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manolo Padron Martinez <>
Subject Obtaining unique values from a view
Date Tue, 03 Mar 2009 13:27:00 GMT

I'm really a newbie, and I have a newbie problem (and maybe a miss
conception of the way to work with couch).
I have a lot of documents with this form (that represents experiments with
any number of conditions, so X and Y could be only X or even X,Y,Z...)


And I have a view like:

function(doc) {
  if (doc.Experiment)
   for (i in doc.Conditions){
       emit(doc.Experiment, i);


return values;

When I launch the view I get this:


I would like to get what are the conditions for every experiment grouped by
experiment without repetitions (I mean something like)


Anyone could help me?

Regards from Canary Island

Manuel Padron Martinez

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