incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "armin weisser" <armin.weis...@virtual-identity.com>
Subject AW: total_rows:1 but rows:[]
Date Thu, 28 Apr 2011 09:42:18 GMT

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 <armin.weisser@virtual-identity.com>
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

Mime
View raw message