public testUsingTermRegexOnARangeFiltersTheResults ( ) |
public function testUsingTermRegexOnARangeFiltersTheResults()
{
$builder = (new Command\Builder\QueryIndex(static::$riak))->buildBucket('Students' . static::$bucket, static::LEVELDB_BUCKET_TYPE)->withIndexName('lessThan500_bin')->withRangeValue('a', 'z')->withTermFilter('^less');
// Get first page
$command = $builder->build();
$response = $command->execute();
$this->assertEquals('200', $response->getCode());
$this->assertEquals(500, count($response->getResults()));
}