Problem with OR -clauses?
sbatururimi opened this issue · comments
I tried to use the keys
array while querying with a view but always got an empty result. Any help with that?
I have fixed that by using:
alice.view('characters', 'crazy_ones', {
keys=severalKeys
},
function(err, body) {
if (!err) {
body.rows.forEach(function(doc) {
console.log(doc.value);
});
}
});
then for your view
exports.characters = {
map: function(doc){
if (doc.facebookId){
emit(doc.facebookId, {_id: doc._id})
}
}
}
Important here is to omit []-brackets in the emit
call!