Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Api\EntitySearchHelper Interface Reference

Generic interface for searching entities. More...

+ Inheritance diagram for Wikibase\Repo\Api\EntitySearchHelper:

Public Member Functions

 getRankedSearchResults ( $text, $languageCode, $entityType, $limit, $strictLanguage)
 Get entities matching the search term.
 

Detailed Description

Generic interface for searching entities.

Member Function Documentation

◆ getRankedSearchResults()

Wikibase\Repo\Api\EntitySearchHelper::getRankedSearchResults (   $text,
  $languageCode,
  $entityType,
  $limit,
  $strictLanguage 
)

Get entities matching the search term.

Parameters
string$text
string$languageCode
string$entityType
int$limit
bool$strictLanguage
Returns
TermSearchResult[] Key: string Serialized EntityId

Implemented in Wikibase\Repo\Api\CombinedEntitySearchHelper, Wikibase\Repo\Api\ConceptUriSearchHelper, Wikibase\Repo\Api\EntityIdSearchHelper, Wikibase\Repo\Api\EntityTermSearchHelper, Wikibase\Repo\Api\TypeDispatchingEntitySearchHelper, and Wikibase\Repo\FederatedProperties\ApiEntitySearchHelper.


The documentation for this interface was generated from the following file: