If in the view function I emit([doc.key,doc.type.doc.status],doc.name) and 
I want to query the data that belong to certain key and  certain type, can 
I use key range query? 
such as:
startkey=["key1","type1"]
endkey=["key1","type1",{}]

I try to query the data using the startkey and endkey by RCBL EST API but 
got error:
{
  "error": "not_found",
  "reason": "Router unable to route request to 
do_GET_DesignDocumentjava.lang.reflect.InvocationTargetException"
}





On Friday, July 17, 2015 at 6:35:25 AM UTC+8, Jens Alfke wrote:
>
>
> On Jul 16, 2015, at 12:05 PM, [email protected] <javascript:> wrote:
>
> However, how would i query all documents that belong to a certain parent. 
> Would that be possible with the above map function? Or would i need a 
> second map function?
>
>
> That’s a key range query 
> <http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/query/index.html#key-ranges>.
>  
> In JSON terms, you’d use a startKey of [parent_uuid] and an endKey of 
> [parent_uuid, { }]. (The “{ }” is basically a placeholder; see the docs I 
> linked to.)
>
> —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/6376852b-54f5-4724-aced-fbcea51ef14b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to