Total Complexity | 1 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class CwpSearchBoostExtension extends DataExtension { |
||
7 | |||
8 | /** |
||
9 | * Quality to boost the 'SearchBoost' field by. |
||
10 | * Default boost is 2x |
||
11 | * |
||
12 | * @var config |
||
13 | * @string |
||
14 | */ |
||
15 | private static $search_boost = '2'; |
||
|
|||
16 | |||
17 | private static $db = array( |
||
18 | 'SearchBoost' => 'Text' |
||
19 | ); |
||
20 | |||
21 | /** |
||
22 | * Adds boost fields to this page |
||
23 | * |
||
24 | * @param FieldList $fields |
||
25 | */ |
||
26 | public function updateCMSFields(FieldList $fields) { |
||
45 |