Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer Interface Reference

Interface for TtmServer that can act as backend for translation search. More...

Inheritance diagram for MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer:
MediaWiki\Extension\Translate\TtmServer\ElasticSearchTtmServer

Public Member Functions

 search (string $queryString, array $opts, array $highlight)
 Performs a search in the translation database.
 
 getFacets ( $resultset)
 
 getTotalHits ( $resultset)
 
 getDocuments ( $resultset)
 

Detailed Description

Interface for TtmServer that can act as backend for translation search.

Definition at line 10 of file SearchableTtmServer.php.

Member Function Documentation

◆ getDocuments()

MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer::getDocuments ( $resultset)
Parameters
mixed$resultset
Returns
array[]

Implemented in MediaWiki\Extension\Translate\TtmServer\ElasticSearchTtmServer.

◆ getFacets()

MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer::getFacets ( $resultset)
Parameters
mixed$resultset
Returns
array[]

Implemented in MediaWiki\Extension\Translate\TtmServer\ElasticSearchTtmServer.

◆ getTotalHits()

MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer::getTotalHits ( $resultset)
Parameters
mixed$resultset

Implemented in MediaWiki\Extension\Translate\TtmServer\ElasticSearchTtmServer.

◆ search()

MediaWiki\Extension\Translate\TtmServer\SearchableTtmServer::search ( string $queryString,
array $opts,
array $highlight )

Performs a search in the translation database.

Parameters
string$queryStringString to search for.
array$optsQuery options like language.
array$highlightTags for highlighting.
Returns
mixed Result set

Implemented in MediaWiki\Extension\Translate\TtmServer\ElasticSearchTtmServer.


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