On Mar 11, 2014, at 8:25 AM, archit agarwal <[email protected]> wrote:

> When I use this => It does seem to match against the multiple keys that I 
> have => which are strings and not arrays. 
> For eg. it matches all with Marina Bay and Pasir Ris

That may be because your data set is limited. Collation of arrays isn't that 
complicated: the first element is the primary sort key, the second element is 
the secondary, etc. So if you used
        startKey = [300000, "M"]
        endKey = [500000, "P"]
it'll match [300000, "M"], [301000, "A"], [350000, "E"], [499999, "Z"], 
[500000, "O"], [500000, "P"]. In other words, you're going to have to manually 
filter out secondary elements that aren't in your desired range "M"-"P".

--Jens

-- 
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/8BD95152-5B2D-4C17-BDF5-AEFE74B8BAD0%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to