Composite key query in PHP SDK
Hi
I have a view which i have to query with keys. its happening from admin console but not with PHP SDK. Can you please tell me what am i doing wrong here? Code example...
Admin URL which is working
http://URL:PORT/bucket/_design/DDocument/_view/viewName?startkey=[2012,11]&endkey=[2012,12]&group=true&group_level=2&reduce=true&stale=update_after&connection_timeout=60000&limit=10&skip=0
But not with these php call
1. $couchbaseObject->view('DDocument','viewName',array('startkey'=>array('2012','11'),'endkey'=>array('2012','12'),'stale'=>'update_after','group'=>true,'group_level'=>2,'reduce'=>true));
2. $couchbaseObject->view('DDocument','viewName',array('startkey'=>'[2012,11]','endkey'=>'[2012,12]','stale'=>'update_after','group'=>true,'group_level'=>2,'reduce'=>true));
3. $couchbaseObject->view('DDocument','viewName',array('startkey'=>rawurlencode('[2012,11]'),'endkey'=>rawurlencode('[2012,12]'),'stale'=>'update_after','group'=>true,'group_level'=>2,'reduce'=>true));
Where i am doing wrong?
Hello,
did you ever figure this out ? I am running into a similar problem.