Created
August 19, 2017 11:41
-
-
Save dbjpanda/d443142e8f95ebeb872b66f2d38792a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rpt data type query test. | |
$facets_options['location_rpt'] = [ | |
'field' => 'location_rpt', | |
'geom' => '["-180 -90" TO "180 90"]', | |
'gridLevel' => '2', | |
'maxCells' => '35554432', | |
'distErrPct' => '', | |
'distErr' => '', | |
'format' => 'ints2D', | |
]; | |
$query->setOption('search_api_facets', $facets_options); | |
$result = $query->execute(); | |
$expected = []; | |
$facets = $result->getExtraData('search_api_facets', [])['location_rpt']; | |
$this->assertEquals($expected, $facets, 'The correct location facets are returned'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment