On Feb 21, 2014, at 8:26 AM, Frederic Yesid Peña Sánchez 
<[email protected]> wrote:

> I'm trying to emit keys like this:
> 
> @{@"1",@"1",@"123-x"}
> @{@"1",@"2",@"asdas"}
> @{@"1",@"3",@"jdhs"}
> @{@"1",@"4",@"s,djhdsf"}
> @{@"1",@"5",@"s,jfd"}
> @{@"1",@"6",@"shgas"}

I think you meant to use square brackets, right? These are meant to be arrays?

> I need to provide the first and last components of the key, and wildcard the 
> middle. so my keys will be ordered by first and second components.

Did you mean "first and third components"?

You can't do this. Array keys are sorted by each component in turn, and you can 
only query for a range of keys in that sort order. So the lookup can't ignore 
the intermediate array elements.

The best way to solve this is to create another view that emits only the key 
components you care about, and then query that view.

--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/91C624EC-6966-4505-9A16-C697161A40F6%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to