Just like in normal sql. we do SELELCT WHERE like:
select valuea from atable where keya=a and keyb=b.
The result should be a list of rows that have keya == a and keyb == b.
And what I'm trying in couchbase lite is to
emit(@[doc[keya], doc[keyb]], doc[valuea])
and when querying, I'm expecting to get a list of doc[valuea] that match the keya == a and keyb == b.
The question is, is it the way emit is meant to be used? And should I have multiple docs that share the same key in a index?
-Sean