> On Oct 30, 2014, at 9:16 AM, Karel-Jan Van Haute <[email protected]> wrote:
> 
> To test it I added 0 and 6 witch are the current minimum and maximum in my 
> list. 
> So the question is how I can do that without giving the maximum. 

Use "an infinitely large value" instead of 6. The typical value people use for 
this kind of placeholder is an empty dictionary — @{} in Obj-C; I don't 
remember the syntax in Swift. (The object ordering used by the index will sort 
dictionaries after anything else, including strings/numbers/arrays.)

In CBL 1.0.3+ you can use the new CBLQuery.prefixMatchLevel property instead:
        query.startKey = [parentId]
        query.endKey = [parentId]
        query.prefixMatchLevel = 1

—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/EAD758DF-D0C0-412F-84C0-88477FD3FFEC%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to