I thought that this:
http://localhost:5984/results/_design/counter/_view/treatment?group=true&keys="BlUTq"
which returns:
{"key":["BlUTq","control"],"value":20},
{"key":["BlUTq","treatment"],"value":14}
should be equivalent to this:
results = db.view("counter/treatment", group = 'true', keys =
[ "BlUTq"])
however this returns no results. the only way I can get the full
results is if "keys" contains an array like this:
results = db.view("counter/treatment", group = 'true', keys =
[ ["BlUTq", "treatment"], ["BlUTq", "control"] ])
am I missing something? I've tried 'keys = [ ["BlUTq"] ]' as well, but
still not what I want.
I would like to be able to just specify one of the keys like I can
with curl/browser.
I have a map/reduce set up and the result has 2 keys in an array and
I'm having some trouble getting the results with python-couchdb.
I thought that this:
http://localhost:5984/results/_design/counter/_view/treatment?group=true&keys="BlUTq"
which returns:
{"key":["BlUTq","control"],"value":20},
{"key":["BlUTq","treatment"],"value":14}
should be equivalent to this:
results = db.view("counter/treatment", group = 'true', keys =
[ "BlUTq"])
however this returns no results.
the only way I can get the full
results is if "keys" contains an array like this:
results = db.view("counter/treatment", group = 'true', keys =
[ ["BlUTq", "treatment"], ["BlUTq", "control"] ])
am I missing something? I've tried 'keys = [ ["BlUTq"] ]' as well, but
still not what I want.
I would like to be able to just specify one of the keys like I can
with curl/browser.