@@ -147,6 +147,10 @@ |
||
147 | 147 | * Take a list of field prefixes and expand them for multi-lingual |
148 | 148 | * with the provided boostings. |
149 | 149 | */ |
150 | + |
|
151 | + /** |
|
152 | + * @param string[] $additional_fields |
|
153 | + */ |
|
150 | 154 | public function merge_ml_fields( $fields2boosts, $additional_fields ) { |
151 | 155 | $flds = array(); |
152 | 156 | foreach( $fields2boosts as $f => $b ) { |
@@ -58,6 +58,10 @@ |
||
58 | 58 | return $query->is_main_query() && $query->is_search(); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param double $duration |
|
63 | + * @param boolean $was_jetpack_search |
|
64 | + */ |
|
61 | 65 | private function record_query_time( $duration, $was_jetpack_search ) { |
62 | 66 | $this->stats[] = array( $was_jetpack_search, intval( $duration * 1000 ) ); |
63 | 67 | } |