A recent patch, I66be724d, introduced a regression that no longer
applied user selected namespaces to the search engine. Fix that up so we
give the correct responses to api rqeuests.
Change-Id: I8e5e180cb143ae3cddeb12f51bc7aae75b20fe58
$type = isset( $params['backend'] ) ? $params['backend'] : null;
$searchEngine = MediaWikiServices::getInstance()->getSearchEngineFactory()->create( $type );
$limit = $params['limit'];
- $namespaces = $params['namespace'];
+ $searchEngine->setNamespaces( $params['namespace'] );
$offset = null;
if ( isset( $params['offset'] ) ) {
// If the API supports offset then it probably