Helper class to search for entities by ID.
More...
|
| __construct (array $searchHelpers) |
|
| getRankedSearchResults ( $text, $languageCode, $entityType, $limit, $strictLanguage, ?string $profileContext) |
| Get entities matching the search term.- Parameters
-
string | $text | |
string | $languageCode | |
string | $entityType | |
int | $limit | |
bool | $strictLanguage | |
string | null | $profileContext | indication given to the engine on the context this search is made (might affect ranking) |
- Returns
- TermSearchResult[] Key: string Serialized EntityId
- Exceptions
-
|
|
Helper class to search for entities by ID.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\Api\CombinedEntitySearchHelper::__construct |
( |
array | $searchHelpers | ) |
|
- Parameters
-
array | $searchHelpers | ordered array of EntitySearchHelpers to be used. |
◆ getRankedSearchResults()
Wikibase\Repo\Api\CombinedEntitySearchHelper::getRankedSearchResults |
( |
| $text, |
|
|
| $languageCode, |
|
|
| $entityType, |
|
|
| $limit, |
|
|
| $strictLanguage, |
|
|
?string | $profileContext ) |
Get entities matching the search term.
- Parameters
-
string | $text | |
string | $languageCode | |
string | $entityType | |
int | $limit | |
bool | $strictLanguage | |
string | null | $profileContext | indication given to the engine on the context this search is made (might affect ranking) |
- Returns
- TermSearchResult[] Key: string Serialized EntityId
- Exceptions
-
Implements Wikibase\Repo\Api\EntitySearchHelper.
◆ mergeSearchResults()
Wikibase\Repo\Api\CombinedEntitySearchHelper::mergeSearchResults |
( |
array | $searchResults, |
|
|
array | $newSearchResults, |
|
|
| $limit ) |
|
private |
- Parameters
-
TermSearchResult[] | $searchResults | |
TermSearchResult[] | $newSearchResults | |
int | $limit | |
- Returns
- TermSearchResult[]
◆ $searchHelpers
Wikibase\Repo\Api\CombinedEntitySearchHelper::$searchHelpers |
|
private |
The documentation for this class was generated from the following file: