I guess the question really is: 

is there any way to filter them out before the reduce function runs, or is 
the proper approach to reduce the view again, and pass the values I would 
like from the key to the value?



On Sunday, February 23, 2014 1:17:42 PM UTC-8, Eduardo Scoz wrote:
>
> Hey guys, great work on CBL!
>
> I have a view with a map/reduce function that returns rows like:
>
> KEY: @[@"A", @"Car", @"2"], VALUE: Something
> KEY: @[@"A", @"Car", @"3"], VALUE: Something
> KEY: @[@"A", @"Dog", @"3"], VALUE: Something
> KEY: @[@"B", @"Dog", @"4"], VALUE: Something
>
> How can I set up the startkey/endkey/key so that the view only returns 
> rows with keys starting with @[@"A", @"Car"] ? 
>
> Is there any way to do that, or would I have to have a different reduce 
> function for that?
>

-- 
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/785f7174-e5ff-4cb4-b462-e3455974d6cf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to