How to use view with composite keys?

Hello,

I have just tested on my cluster and python app, and it is working as expected.

1- Have you published your view in production?
2- Have you tested from the REST API/Console

Here the code that I have used:

#!/usr/bin/env python
from couchbase import Couchbase
from couchbase.views.params import UNSPEC, Query

cb = Couchbase.connect(bucket=‘default’)

q = Query(
mapkey_range=[
[“feedId”, 2013, 7, 18, 0, 0, 0],
[“feedId”, 2013, 7, 18, 10, 0, 0]]
)

rows = cb.query(“test”, “test”, query=q )

for row in rows:
print “Key “%s”. ID ‘%s’” % (row.key, row.docid)

Regards
Tug
@tgrall