You can do this but need to select the endkey to be past the startkey and 
before the next. See 
https://forums.couchbase.com/t/partial-selection-startkey-and-endkey/426/2

Hope this helps.



_____________________________
From: atedja.nm <[email protected]<mailto:[email protected]>>
Sent: Saturday, March 21, 2015 3:49 am
Subject: Querying compound keys
To: <[email protected]<mailto:[email protected]>>


Given these map results K, V:

["plane", "Bob"], "airbus"
["plane", "Alice"], "fast jet"
["boat", "Alice"], "inspector 1"
["boat", "Bob"], "super yacht 2000"
["boat", "Bob"], "super yacht 2001"
["car", "John"], "mercedes"
["car", "Bob"], "toyota"

where K = [vehicle, owner] and V = name

How can I search by the vehicle ONLY and match all owners?

I have been trying these parameters

key="plane"
keys=["plane"]
startkey=["plane"]&endkey=["plane"]

None of them seem to work as desired.  I have got somewhat working by 
specifying *just* startkey=["car"].
But that includes all of them since "plane" > "car".

I guess what I am asking is, is there a wildcard character when doing a query?  
Something like this?

startkey=["plane", "*"]&endkey=["plane", "*"]

--
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to