- /**
- * Make a list of searchable namespaces and their canonical names.
- * @deprecated since 1.27; use SearchEngineConfig::searchableNamespaces()
- * @return array
- */
- public static function searchableNamespaces() {
- return MediaWikiServices::getInstance()->getSearchEngineConfig()->searchableNamespaces();
- }
-
- /**
- * Extract default namespaces to search from the given user's
- * settings, returning a list of index numbers.
- * @deprecated since 1.27; use SearchEngineConfig::userNamespaces()
- * @param user $user
- * @return array
- */
- public static function userNamespaces( $user ) {
- return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user );
- }
-
- /**
- * An array of namespaces indexes to be searched by default
- * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces()
- * @return array
- */
- public static function defaultNamespaces() {
- return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces();
- }
-
- /**
- * Get a list of namespace names useful for showing in tooltips
- * and preferences
- * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText()
- * @param array $namespaces
- * @return array
- */
- public static function namespacesAsText( $namespaces ) {
- return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces );
- }
-
- /**
- * Load up the appropriate search engine class for the currently
- * active database backend, and return a configured instance.
- * @deprecated since 1.27; Use SearchEngineFactory::create
- * @param string $type Type of search backend, if not the default
- * @return SearchEngine
- */
- public static function create( $type = null ) {
- return MediaWikiServices::getInstance()->getSearchEngineFactory()->create( $type );
- }
-
- /**
- * Return the search engines we support. If only $wgSearchType
- * is set, it'll be an array of just that one item.
- * @deprecated since 1.27; use SearchEngineConfig::getSearchTypes()
- * @return array
- */
- public static function getSearchTypes() {
- return MediaWikiServices::getInstance()->getSearchEngineConfig()->getSearchTypes();
- }
-