On Mar 8, 2014, at 5:15 PM, archit agarwal <[email protected]> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to