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

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3ef6f156-5745-47c2-8ddb-a94d20dc1e25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to