couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qaqabincs <luji...@gmail.com>
Subject view used startkey & endkey problem
Date Mon, 25 Nov 2013 14:51:57 GMT
hi, all,

I use couchdb-1.0.4, and I use a design view:

findBoys:{
map:function(doc) {
if(doc.boy){
emit([doc.boy.height,doc.boy.weight],doc);
};
}
}

if I query this view via Futon, there are 13 boys on list, but if I set
a range to this view, such as:
http://localhost:5984/repos/_design/namelist/_view/findBoys?startkey=[400,
50]&endkey=[1000, 100]
couchdb return me a result like:
{"total_rows":13,"offset":13,"rows":[]}
but there at least a boy whose height=600 & weight=69 !

and, when I use couchdb-1.5.0, the view work all right, it can return
the exact data.

is the "startkey & endkey" not supported by couchdb-1.0.4? or I use a
mistake syntax?



Qaqabincs

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