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
I will check this thoroughly again, but seems to work so far. On Sunday, March 9, 2014 12:27:45 PM UTC+8, Jens Alfke wrote: > > > On Mar 8, 2014, at 5:15 PM, archit agarwal <[email protected]<javascript:>> > wrote: > > Is there something fundamentally wrong with the approach I am currently > using i.e. by doing multiple ranges in the keys? > Because it did seem to work fine. > > > The endKey as you gave it in the email doesn’t make sense: > > query.startKey = @[startPrice,@"Marina Bay"]; > query.endKey = @[endPrice,@[@"Marina Bay",@"Pasir Ris",@{}],{}]; //In > ascending order > > If your keys are [price, location] then the second element in startKey or > endKey has to match against a location. But in the endKey the second > element is an array, not a string. > > —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/d72cd063-23b0-4add-995a-392726423a78%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
