CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Search\EmptySearchResultSet Class Reference
+ Inheritance diagram for CirrusSearch\Search\EmptySearchResultSet:
+ Collaboration diagram for CirrusSearch\Search\EmptySearchResultSet:

Public Member Functions

 __construct ( $searchContainedSyntax)
 
 getElasticaResultSet ()
 @inheritDoc
 
 searchContainedSyntax ()
 @inheritDoc
 
- Public Member Functions inherited from CirrusSearch\Search\BaseCirrusSearchResultSet
 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 ()
 

Protected Member Functions

 transformOneResult (\Elastica\Result $result)
 @inheritDoc
 
- Protected Member Functions inherited from CirrusSearch\Search\BaseCirrusSearchResultSet
 getTitleHelper ()
 Useful to inject your own TitleHelper during tests.
 

Additional Inherited Members

- Static Public Member Functions inherited from CirrusSearch\Search\BaseCirrusSearchResultSet
static emptyResultSet ( $searchContainedSyntax=false)
 

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Search\EmptySearchResultSet::__construct ( $searchContainedSyntax)
Parameters
bool$searchContainedSyntax

Member Function Documentation

◆ getElasticaResultSet()

CirrusSearch\Search\EmptySearchResultSet::getElasticaResultSet ( )

◆ transformOneResult()

CirrusSearch\Search\EmptySearchResultSet::transformOneResult ( \Elastica\Result $result)
protected

@inheritDoc

Reimplemented from CirrusSearch\Search\BaseCirrusSearchResultSet.


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