◆ __construct()
CirrusSearch\Search\InterleavedResultSet::__construct |
( |
CirrusSearchResultSet | $nested, |
|
|
array | $interleaved, |
|
|
array | $teamA, |
|
|
array | $teamB, |
|
|
| $offset ) |
- Parameters
-
CirrusSearchResultSet | $nested | Original result set for team A (control) |
CirrusSearchResult[] | $interleaved | Interleaved results |
string[] | $teamA | Document id's belonging to team A |
string[] | $teamB | Document id's belonging to team B |
int | $offset | Offset to calculate next unused result in team A |
◆ addInterwikiResults()
CirrusSearch\Search\InterleavedResultSet::addInterwikiResults |
( |
CirrusSearchResultSet | $res, |
|
|
| $type, |
|
|
| $interwiki ) |
◆ count()
CirrusSearch\Search\InterleavedResultSet::count |
( |
| ) |
|
◆ extractResults()
CirrusSearch\Search\InterleavedResultSet::extractResults |
( |
| ) |
|
- Returns
- CirrusSearchResult[]
◆ extractTitles()
CirrusSearch\Search\InterleavedResultSet::extractTitles |
( |
| ) |
|
Extract all the titles in the result set.
- Returns
- Title[]
◆ getElasticaResultSet()
CirrusSearch\Search\InterleavedResultSet::getElasticaResultSet |
( |
| ) |
|
◆ getElasticResponse()
CirrusSearch\Search\InterleavedResultSet::getElasticResponse |
( |
| ) |
|
◆ getInterwikiResults()
CirrusSearch\Search\InterleavedResultSet::getInterwikiResults |
( |
| $type = self::SECONDARY_RESULTS | ) |
|
Return a result set of hits on other (multiple) wikis associated with this one.
- Parameters
-
- Returns
- ISearchResultSet[]
◆ getMetrics()
CirrusSearch\Search\InterleavedResultSet::getMetrics |
( |
| ) |
|
◆ getOffset()
CirrusSearch\Search\InterleavedResultSet::getOffset |
( |
| ) |
|
◆ getQueryAfterRewrite()
CirrusSearch\Search\InterleavedResultSet::getQueryAfterRewrite |
( |
| ) |
|
- Returns
- string|null The search the query was internally rewritten to, or null when the result of the original query was returned.
◆ getQueryAfterRewriteSnippet()
CirrusSearch\Search\InterleavedResultSet::getQueryAfterRewriteSnippet |
( |
| ) |
|
- Returns
- string|null Same as self::getQueryAfterRewrite(), but in HTML and with changes highlighted. Null when the query was not rewritten.
◆ getSuggestionQuery()
CirrusSearch\Search\InterleavedResultSet::getSuggestionQuery |
( |
| ) |
|
- Returns
- string|null Suggested query, null if none
◆ getSuggestionSnippet()
CirrusSearch\Search\InterleavedResultSet::getSuggestionSnippet |
( |
| ) |
|
- Returns
- string HTML highlighted suggested query, '' if none
◆ getTotalHits()
CirrusSearch\Search\InterleavedResultSet::getTotalHits |
( |
| ) |
|
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.
- Returns
- int|null
◆ hasInterwikiResults()
CirrusSearch\Search\InterleavedResultSet::hasInterwikiResults |
( |
| $type = self::SECONDARY_RESULTS | ) |
|
Check if there are results on other wikis.
- Parameters
-
- Returns
- bool
◆ hasMoreResults()
CirrusSearch\Search\InterleavedResultSet::hasMoreResults |
( |
| ) |
|
- Returns
- bool True when there are more pages of search results available.
◆ hasRewrittenQuery()
CirrusSearch\Search\InterleavedResultSet::hasRewrittenQuery |
( |
| ) |
|
Some search modes will run an alternative query that it thinks gives a better result than the provided search.
Returns true if this has occurred.
- Returns
- bool
◆ hasSuggestion()
CirrusSearch\Search\InterleavedResultSet::hasSuggestion |
( |
| ) |
|
Some search modes return a suggested alternate term if there are no exact hits.
Returns true if there is one on this set.
- Returns
- bool
◆ numRows()
CirrusSearch\Search\InterleavedResultSet::numRows |
( |
| ) |
|
◆ searchContainedSyntax()
CirrusSearch\Search\InterleavedResultSet::searchContainedSyntax |
( |
| ) |
|
Did the search contain search syntax? If so, Special:Search won't offer the user a link to a create a page named by the search string because the name would contain the search syntax.
- Returns
- bool
◆ setRewrittenQuery()
CirrusSearch\Search\InterleavedResultSet::setRewrittenQuery |
( |
string | $newQuery, |
|
|
| $newQuerySnippet = null ) |
◆ setSuggestionQuery()
CirrusSearch\Search\InterleavedResultSet::setSuggestionQuery |
( |
string | $suggestionQuery, |
|
|
| $suggestionSnippet = null ) |
◆ shrink()
CirrusSearch\Search\InterleavedResultSet::shrink |
( |
| $limit | ) |
|
- Parameters
-
int | $limit | Shrink result set to $limit and flag if more results are available. |
The documentation for this class was generated from the following file:
- includes/Search/InterleavedResultSet.php