Index: trunk/extensions/MWSearch/MWSearch_body.php |
— | — | @@ -162,6 +162,17 @@ |
163 | 163 | function acceptListRedirects() { |
164 | 164 | return false; |
165 | 165 | } |
| 166 | + |
| 167 | + /** Merge the prefix into the query (if any) */ |
| 168 | + function transformSearchTerm( $term ) { |
| 169 | + global $wgLuceneSearchVersion; |
| 170 | + |
| 171 | + if ( $wgLuceneSearchVersion >= 2.1 && $this->prefix != '' ){ |
| 172 | + # convert to internal backend prefix notation |
| 173 | + $term = $term.' prefix:'.$this->prefix; |
| 174 | + } |
| 175 | + return $term; |
| 176 | + } |
166 | 177 | } |
167 | 178 | |
168 | 179 | class LuceneResult extends SearchResult { |
— | — | @@ -439,6 +450,7 @@ |
440 | 451 | * @param string $method The protocol verb to use |
441 | 452 | * @param string $query |
442 | 453 | * @param int $limit |
| 454 | + * @param int $offset |
443 | 455 | * @return array |
444 | 456 | * @access public |
445 | 457 | */ |