@@ -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,10 @@ discard block |
||
| 202 | 205 | } |
| 203 | 206 | |
| 204 | 207 | |
| 208 | + /** |
|
| 209 | + * @param Search $search |
|
| 210 | + * @param Query $query |
|
| 211 | + */ |
|
| 205 | 212 | private function addTypesToSearch(&$search, $types, $query) { |
| 206 | 213 | // If the query is a 'more like this' we can get the terms used for searching by performing |
| 207 | 214 | // an extra query, in this case a query validation with explain and rewrite turned on |