In the Ubuntu SDK version, I faced the problem, that I can’t send a range-request to a map, limiting on a date.
When using the web-interface, I can easily query all documents between ["foo", "2014-03-25T11:00:00+00:00"]
and ["foo", []]
but when I try to execute this in a query using the SDK, it returns NULL
.
Here’s my PHP code:
$res = $couchbase->query(
\CouchbaseViewQuery::from("integration", "ids")
->range(array("foo", "S2014-03-25T11:00:00+00:00"), array("foo", array())));
It must have something to do with the +
sign, because that request works as expected if I strip off the time-offset +00:00
.