aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQuery.php
diff options
context:
space:
mode:
authorDerick Alangi <alangiderick@gmail.com>2023-01-26 21:38:20 +0200
committerD3r1ck01 <xsavitar.wiki@aol.com>2023-02-03 12:35:14 +0000
commit6eaba36617d7ee753bc57abe4d94b8e3ca0e2d0f (patch)
tree1515154113f390210a2713aa2ada21d90b7a6a27 /includes/api/ApiQuery.php
parentf48df429f662c3b80ad4967e3cecb136e25dc94f (diff)
downloadmediawikicore-6eaba36617d7ee753bc57abe4d94b8e3ca0e2d0f.tar.gz
mediawikicore-6eaba36617d7ee753bc57abe4d94b8e3ca0e2d0f.zip
search: Make TitleMatcher a MediaWiki service object
@note: Deprecated SearchEngine::getNearMatcher and ::getDefaultMatcher() and begin using the new interfaces. Renamed SearchNearMatcher to depict what it really does like TitleMatcher when searching. Also, I pulled out SpecialSearchTestMockResultSet class to a separate file. Change-Id: I09990e9f263c075a6ab137ee5bcb7285359f057c
Diffstat (limited to 'includes/api/ApiQuery.php')
-rw-r--r--includes/api/ApiQuery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php
index d4e34707b65a..0b0099720a43 100644
--- a/includes/api/ApiQuery.php
+++ b/includes/api/ApiQuery.php
@@ -401,6 +401,7 @@ class ApiQuery extends ApiBase {
'services' => [
'SearchEngineConfig',
'SearchEngineFactory',
+ 'TitleMatcher',
],
],
'tags' => [