@@ -186,6 +186,9 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | |
189 | + /** |
|
190 | + * @param Query $query |
|
191 | + */ |
|
189 | 192 | private function addExtractedQueryTermsForMoreLikeThis($query, &$highlights) { |
190 | 193 | if($query->MoreLikeThis) { |
191 | 194 | $termsMatchingQuery = array(); |
@@ -202,6 +205,9 @@ discard block |
||
202 | 205 | } |
203 | 206 | |
204 | 207 | |
208 | + /** |
|
209 | + * @param Search $search |
|
210 | + */ |
|
205 | 211 | private function addTypesToSearch(&$search, $type) { |
206 | 212 | // If the query is a 'more like this' we can get the terms used for searching by performing |
207 | 213 | // an extra query, in this case a query validation with explain and rewrite turned on |