Sorry the map function is "names":{ "map": "function(doc) { emit(doc.account.name, true) }" } -----Ursprüngliche Nachricht----- Von: armin weisser [mailto:armin.weisser@virtual-identity.com] Gesendet: Donnerstag, 28. April 2011 11:42 An: user@couchdb.apache.org Betreff: AW: total_rows:1 but rows:[] What do you mean with "overall rows info". Is that a config or request param? The mapping function is very simple. "names":{ "map": "function(doc) { emit(doc.account.username, true) }" } The document looks like: { "_id":..., "_rev":..., "account { "name":"a name", "pwd":" a pwd" } } The query is http://localhost:5984/mydb/_design/views/_view/names?key="unknown" -----Ursprüngliche Nachricht----- Von: N/A N/A [mailto:pressley333@yahoo.com] Gesendet: Donnerstag, 28. April 2011 11:29 An: user@couchdb.apache.org Betreff: Re: total_rows:1 but rows:[] Hi, Maybe your overall rows info is 1, but your key filter doesnt match any of them. regards, ________________________________ From: armin weisser To: user@couchdb.apache.org Sent: Thu, April 28, 2011 12:25:31 PM Subject: total_rows:1 but rows:[] Hi there, can anyone tell me why total_rows is 1 when rows is empty? I'd expect total_rows:0. Or do I miss something? {"total_rows":1,"offset":0,"rows":[]} Cheers, Armin