CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Base class to represent a CirrusSearchResultSet Extensions willing to feed Cirrus with a CirrusSearchResultSet must extend this class. More...
Public Member Functions | |
hasMoreResults () | |
setSuggestionQuery (string $suggestionQuery, $suggestionSnippet=null) | |
shrink ( $limit) | |
extractResults () | |
extractTitles () | |
Extract all the titles in the result set. | |
addInterwikiResults (CirrusSearchResultSet $res, $type, $interwiki) | |
getInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
hasInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
setRewrittenQuery (string $newQuery, $newQuerySnippet=null) | |
hasRewrittenQuery () | |
getQueryAfterRewrite () | |
getQueryAfterRewriteSnippet () | |
hasSuggestion () | |
getSuggestionQuery () | |
getSuggestionSnippet () | |
count () | |
Count elements of an object https://php.net/manual/en/countable.count.php. | |
numRows () | |
getTotalHits () | |
Some search modes return a total hit count for the query in the entire article database. | |
getElasticResponse () | |
Public Member Functions inherited from CirrusSearch\Search\CirrusSearchResultSet | |
getElasticaResultSet () | |
Static Public Member Functions | |
static | emptyResultSet ( $searchContainedSyntax=false) |
Protected Member Functions | |
transformOneResult (\Elastica\Result $result) | |
getTitleHelper () | |
Useful to inject your own TitleHelper during tests. | |
Base class to represent a CirrusSearchResultSet Extensions willing to feed Cirrus with a CirrusSearchResultSet must extend this class.
|
final |
CirrusSearchResultSet | $res | |
int | $type | one of searchresultset::* constants |
string | $interwiki |
Implements CirrusSearch\Search\CirrusSearchResultSet.
|
final |
Count elements of an object https://php.net/manual/en/countable.count.php.
|
staticfinal |
bool | $searchContainedSyntax |
|
final |
|
final |
Extract all the titles in the result set.
|
final |
Implements CirrusSearch\Search\CirrusSearchResultSet.
|
final |
int | $type |
|
final |
|
final |
|
final |
|
final |
|
protected |
Useful to inject your own TitleHelper during tests.
|
final |
Some search modes return a total hit count for the query in the entire article database.
This may include pages in namespaces that would not be matched on the given settings.
Return null if no total hits number is supported.
|
final |
int | $type |
|
final |
|
final |
|
final |
|
final |
|
final |
string | $newQuery | |
HtmlArmor | string | null | $newQuerySnippet |
Implements CirrusSearch\Search\CirrusSearchResultSet.
|
final |
string | $suggestionQuery | |
HtmlArmor | string | null | $suggestionSnippet |
Implements CirrusSearch\Search\CirrusSearchResultSet.
|
final |
int | $limit | Shrink result set to $limit and flag if more results are available. |
|
abstractprotected |
\Elastica\Result | $result | Result from search engine |
Reimplemented in CirrusSearch\Search\EmptySearchResultSet.