Wikibase
MediaWiki Wikibase extension
|
Helper class to search for entities by ID. More...
Public Member Functions | |
__construct (array $searchHelpers) | |
getRankedSearchResults ( $text, $languageCode, $entityType, $limit, $strictLanguage) | |
Get entities matching the search term. More... | |
Private Member Functions | |
mergeSearchResults (array $searchResults, array $newSearchResults, $limit) | |
Private Attributes | |
$searchHelpers | |
Helper class to search for entities by ID.
Wikibase\Repo\Api\CombinedEntitySearchHelper::__construct | ( | array | $searchHelpers | ) |
array | $searchHelpers | ordered array of EntitySearchHelpers to be used. |
Wikibase\Repo\Api\CombinedEntitySearchHelper::getRankedSearchResults | ( | $text, | |
$languageCode, | |||
$entityType, | |||
$limit, | |||
$strictLanguage | |||
) |
Get entities matching the search term.
string | $text | |
string | $languageCode | |
string | $entityType | |
int | $limit | |
bool | $strictLanguage |
Implements Wikibase\Repo\Api\EntitySearchHelper.
|
private |
TermSearchResult[] | $searchResults | |
TermSearchResult[] | $newSearchResults | |
int | $limit |
|
private |