Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
GeoPointIndexField | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GeoData\Search; |
4 | |
5 | use CirrusSearch\Search\CirrusIndexField; |
6 | use CirrusSearch\SearchConfig; |
7 | |
8 | /** |
9 | * GeoPoint type for CirrusSearch mapping |
10 | */ |
11 | class GeoPointIndexField extends CirrusIndexField { |
12 | /** |
13 | * @var string |
14 | */ |
15 | protected $typeName = 'geo_point'; |
16 | |
17 | /** |
18 | * @param string $name name of the field |
19 | * @param SearchConfig $config CirrusSearch config |
20 | */ |
21 | public function __construct( $name, SearchConfig $config ) { |
22 | parent::__construct( $name, $this->typeName, $config ); |
23 | } |
24 | } |