How to specify a startkey(where the key is compound) where one of the keys could take any value in couchbase

Compund key :

key:[“page name”,“year”,“month”,“day”,“hour”,“minute”]

startkey: [“can take any value”,“2013”,“4”,“15”,“1”,“0”]

endkey : [“can take any value”,“2013”,“4”,“15”,“1”,“0”]

Group level:1

Could anyone tell how to specify the first key that could take any value.

Hello,

When you query a view in Couchbase the range are always calculated from left to right. So you cannot do what you expect.

For this you will have to put the pagename at the end of the key to do a range using the name.

Regards
Tug
@tgrall