wiki.techinc.nl/includes/api
Erik Bernhardson 5865a86b9d search: Hint the SearchEngine about the set of snippets to provide
Some SearchEngine's optimize their snippet generation to not overload
Special:Search with too many snippets, but that implementation detail
is difficult to document for a generic API and leads to confusion
about why a requested snippet may or may not be included in the
response.

Add a way for the api to hint to the SearchEngine what it expects from
the snippet generation. SearchEngine's are under no obligation to
respect this hint. Longer term this may evolve into an API that
provides a more concrete set of expectations around what types of
snippets are expected.

Bug: T306477
Related: I38d58a5af45eef7cd1798312af137a70f73c54c3
Change-Id: Ied664e3c1b7d246bca914f10c8fd2e36ff6418ec
2022-06-02 14:17:23 -07:00
..
Hook build: Updating dependencies 2021-07-22 03:36:05 +00:00
i18n Localisation updates from https://translatewiki.net. 2022-06-02 08:00:19 +02:00
Validator Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
ApiAMCreateAccount.php
ApiAuthManagerHelper.php
ApiBase.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiBlock.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiBlockInfoTrait.php ApiBlockInfoTrait: Add formatted and relative times 2021-12-06 16:02:18 +00:00
ApiChangeAuthenticationData.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiChangeContentModel.php
ApiCheckToken.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
ApiClearHasMsg.php
ApiClientLogin.php Mark ApiClientLogin/ApiLogin as requiring write mode 2021-07-13 14:49:05 +01:00
ApiComparePages.php Merge "api: Inline ContentHandler::makeContent, use local ContentHandlerFactory" 2022-04-16 18:43:03 +00:00
ApiContinuationManager.php phan: Upgrade mediawiki-phan-config to 0.11.1 and set minimum_target_php_version 2022-03-29 16:54:36 +00:00
ApiCSPReport.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiDelete.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiDisabled.php
ApiEditPage.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiEmailUser.php ApiEmailUser: Mark the subject as a required parameter 2022-03-16 11:33:29 +00:00
ApiErrorFormatter.php
ApiErrorFormatter_BackCompat.php
ApiExpandTemplates.php Export ParserOutput strategy keys for jsConfigVars 2022-03-09 17:42:00 -05:00
ApiFeedContributions.php Use MainConfigNames instead of string literals 2022-04-11 17:53:27 +03:00
ApiFeedRecentChanges.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiFeedWatchlist.php Use MainConfigNames instead of string literals 2022-04-11 17:53:27 +03:00
ApiFileRevert.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiFormatBase.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiFormatFeedWrapper.php
ApiFormatJson.php
ApiFormatNone.php
ApiFormatPhp.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiFormatRaw.php
ApiFormatXml.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiFormatXmlRsd.php
ApiHelp.php Merge "api: Disallow user-generated modules on api.php help pages" 2022-05-21 14:36:19 +00:00
ApiHelpParamValueMessage.php
ApiHookRunner.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ApiImageRotate.php
ApiImport.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiImportReporter.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiLinkAccount.php
ApiLogin.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiLogout.php
ApiMain.php exception: Inject wgShowExceptionDetails from Setup.php 2022-05-22 19:46:18 +00:00
ApiManageTags.php
ApiMergeHistory.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiMessage.php
ApiMessageTrait.php Implement __serialize/__unserialize for PHP 8.1 support 2022-01-31 19:43:39 +00:00
ApiModuleManager.php Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
ApiMove.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiOpenSearch.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
ApiOpenSearchFormatJson.php
ApiOptions.php Re-apply "preferences: Use a faster and simpler form descriptor when validating" 2022-03-10 23:00:53 +00:00
ApiPageSet.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiParamInfo.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiParse.php Merge "ApiParse: Enable "skin mode" when mobileformat=1 is set" 2022-04-01 14:30:22 +00:00
ApiPatrol.php
ApiProtect.php Remove usages of deprecated Title::getRestrictionTypes 2022-04-13 20:34:10 +00:00
ApiPurge.php api: Replace deprecated ApiPageSet::getGoodTitles in ApiPurge 2022-02-11 23:57:48 +01:00
ApiQuery.php Use injection for LinksMigration on LinkBatch, action, api, special page 2022-05-10 20:19:58 +00:00
ApiQueryAllCategories.php
ApiQueryAllDeletedRevisions.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryAllImages.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryAllLinks.php Use injection for LinksMigration on LinkBatch, action, api, special page 2022-05-10 20:19:58 +00:00
ApiQueryAllMessages.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiQueryAllPages.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryAllRevisions.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
ApiQueryAllUsers.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryAuthManagerInfo.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryBacklinks.php ApiQueryBacklinks: Simplify getAllowedParams returns 2021-10-18 13:51:56 +01:00
ApiQueryBacklinksprop.php Revert "ApiQueryBacklinksprop: Completely remove index hints" 2022-05-24 16:32:26 +00:00
ApiQueryBase.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiQueryBlockInfoTrait.php
ApiQueryBlocks.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryCategories.php api: Replace ApiPageSet::getGoodTitles where PageIdentity is not used 2022-02-11 20:11:24 +00:00
ApiQueryCategoryInfo.php
ApiQueryCategoryMembers.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryContributors.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
ApiQueryDeletedRevisions.php Replace Content::getParserOutput call to ContentRenderer::getParserOutput 2021-10-20 12:11:24 +03:00
ApiQueryDeletedrevs.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiQueryDisabled.php
ApiQueryDuplicateFiles.php api: Inject services into ApiQueryDuplicateFiles 2021-07-02 16:13:50 +02:00
ApiQueryExternalLinks.php api: Replace ApiPageSet::getGoodTitles where PageIdentity is not used 2022-02-11 20:11:24 +00:00
ApiQueryExtLinksUsage.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
ApiQueryFilearchive.php filerepo: Duplicate code handling metadata of files to ArchivedFile 2022-04-20 23:01:48 +02:00
ApiQueryFileRepoInfo.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
ApiQueryGeneratorBase.php Allow int on ApiQueryGeneratorBase::setContinueEnumParameter 2021-09-26 13:51:49 +02:00
ApiQueryImageInfo.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryImages.php api: Replace ApiPageSet::getGoodTitles where PageIdentity is not used 2022-02-11 20:11:24 +00:00
ApiQueryInfo.php ApiQueryInfo: Force PRIMARY index on templatelinks 2022-05-12 09:24:40 +00:00
ApiQueryIWBacklinks.php
ApiQueryIWLinks.php api: Replace ApiPageSet::getGoodTitles where PageIdentity is not used 2022-02-11 20:11:24 +00:00
ApiQueryLangBacklinks.php
ApiQueryLangLinks.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryLanguageinfo.php Replace deprecated Language::fetchLanguageNames 2021-12-05 21:11:49 +01:00
ApiQueryLinks.php Use injection for LinksMigration on LinkBatch, action, api, special page 2022-05-10 20:19:58 +00:00
ApiQueryLogEvents.php Merge "api: Avoid unneeded page join in list=logevents" 2022-04-21 08:49:55 +00:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php
ApiQueryPageProps.php
ApiQueryPagesWithProp.php
ApiQueryPrefixSearch.php Inject dependencies into SearchApi 2021-07-04 10:58:36 +00:00
ApiQueryProtectedTitles.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryQueryPage.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryRandom.php api: Fix documenation/types related to null and int types 2022-02-24 17:16:36 +00:00
ApiQueryRecentChanges.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryRevisions.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
ApiQueryRevisionsBase.php Use User::isRegistered for readability instead of ::getId falsy check 2022-04-29 21:15:57 +02:00
ApiQuerySearch.php search: Hint the SearchEngine about the set of snippets to provide 2022-06-02 14:17:23 -07:00
ApiQuerySiteinfo.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
ApiQueryStashImageInfo.php api: Inject services into ApiQueryImageInfo/ApiQueryStashImageInfo 2021-07-02 20:41:27 +02:00
ApiQueryTags.php
ApiQueryTokens.php Allow retrieval of tokens of all available types in one request 2021-10-26 21:49:05 +05:30
ApiQueryUserContribs.php api: Remove deprecated class alias ApiQueryContributions 2022-05-29 06:15:38 +00:00
ApiQueryUserInfo.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiQueryUsers.php api: Change UserOptionsLookup to GenderCache in list=users 2022-04-14 22:26:12 +00:00
ApiQueryWatchlist.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiQueryWatchlistRaw.php api: Inject services into ApiQueryWatchlistRaw/ApiQueryWatchlist 2021-07-03 21:59:08 +02:00
ApiRawMessage.php
ApiRemoveAuthenticationData.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiResetPassword.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiResult.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiRevisionDelete.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiRollback.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiRsd.php
ApiSerializable.php
ApiSetNotificationTimestamp.php API: Fix result of action=setnotificationtimestamp for non-watched title 2022-04-25 17:35:22 +00:00
ApiSetPageLanguage.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiStashEdit.php api: Inline ContentHandler::makeContent, use local ContentHandlerFactory 2022-04-16 16:27:21 +00:00
ApiTag.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiUnblock.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiUndelete.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiUpload.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiUsageException.php Revert "Introduce AbstractLocalizedException" 2021-09-14 19:01:21 +00:00
ApiUserrights.php Simplify ApiUserrights now that CentralAuth no longer extends it 2022-02-17 14:59:59 +00:00
ApiValidatePassword.php Use UserRigorOptions directly 2022-03-25 10:06:34 +11:00
ApiWatch.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiWatchlistTrait.php api: Inject services into ApiWatchlistTrait 2021-07-06 20:15:30 +00:00
IApiMessage.php Fix typos in comments (I-J) 2021-12-30 20:38:04 +05:30
SearchApi.php api: Fix documenation/types related to null and int types 2022-02-24 17:16:36 +00:00