Problem FTS on inclusive date

Hello,

I have a problem with inclusive date on ‘CouchbaseSearchQuery::dateRange()’.

I have a date like that : “2018-03-01T12:00:00+00:00”

$fts = CouchbaseSearchQuery::dateRange();
$fts->start("2018-03-01T12:00:00+00:00", **true**);

I get an object Couchbase\DateRangeSearchQuery :

Couchbase\DateRangeSearchQuery Object
                (
                    [start] => 2018-03-01T12:00:00+00:00
                    [inclusiveStart] => 
                    [field] => creation.dateIndex
                ) 

The ‘inclusiveStart’ is always empty (true or false as second parameter have the same effect) and my query doesn’t incluse the data who match.

Directly on the Index FTS it’s works : creation.dateIndex:>=“2018-03-01T12:00:00+00:00”

Anybody have a solution ? It’s a PHP SDK problem ?

Thanks in advance

Hi @jejom43, thanks for the report. Indeed, it is a typo. I’ve fixed it here: http://review.couchbase.org/c/90669/1/src/couchbase/search/date_range_query.c

thank you very much @avsej
:wink: