Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -28,6 +28,7 @@ |
29 | 29 | |
30 | 30 | === API changes in 1.19 === |
31 | 31 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
| 32 | +* (bug 29748) Add API search prefix support |
32 | 33 | |
33 | 34 | === Languages updated in 1.19 === |
34 | 35 | |
Index: trunk/phase3/includes/api/ApiQuerySearch.php |
— | — | @@ -69,6 +69,9 @@ |
70 | 70 | $search->setNamespaces( $params['namespace'] ); |
71 | 71 | $search->showRedirects = $params['redirects']; |
72 | 72 | |
| 73 | + $query = $search->transformSearchTerm( $query ); |
| 74 | + $query = $search->replacePrefixes( $query ); |
| 75 | + |
73 | 76 | // Perform the actual search |
74 | 77 | if ( $what == 'text' ) { |
75 | 78 | $matches = $search->searchText( $query ); |