Collect results from multiple result sets.
More...
|
| __construct ( $limit, $offset=0, $bannedIds=[]) |
|
| collect (SearchSuggestion $suggestion, $profileName, $index) |
| Collect a doc if possible.
|
|
| isFull () |
| Test whether the collector is full.
|
|
| size () |
| Number of suggestions collected.
|
|
| logAndGetSet (CompletionRequestLog $log) |
| Return the set of suggestions collected so far and log its states to CompletionRequestLog.
|
|
| getMinScore () |
|
Collect results from multiple result sets.
◆ __construct()
CirrusSearch\Search\CompletionResultsCollector::__construct |
( |
| $limit, |
|
|
| $offset = 0, |
|
|
| $bannedIds = [] ) |
- Parameters
-
int | $limit | number of results we want to display |
int | $offset | |
int[] | $bannedIds | Set of id's to never return |
◆ collect()
CirrusSearch\Search\CompletionResultsCollector::collect |
( |
SearchSuggestion | $suggestion, |
|
|
| $profileName, |
|
|
| $index ) |
Collect a doc if possible.
The doc will be collected if the capacity is not yet reached or if its score is better than a suggestion already collected.
- Parameters
-
SearchSuggestion | $suggestion | |
string | $profileName | |
string | $index | |
- Returns
- bool true if the doc was added false otherwise
◆ getMinScore()
CirrusSearch\Search\CompletionResultsCollector::getMinScore |
( |
| ) |
|
◆ isFull()
CirrusSearch\Search\CompletionResultsCollector::isFull |
( |
| ) |
|
Test whether the collector is full.
- Returns
- bool true if it's full
◆ logAndGetSet()
Return the set of suggestions collected so far and log its states to CompletionRequestLog.
- Parameters
-
- Returns
- SearchSuggestionSet
◆ size()
CirrusSearch\Search\CompletionResultsCollector::size |
( |
| ) |
|
Number of suggestions collected.
- Returns
- int
The documentation for this class was generated from the following file:
- includes/Search/CompletionResultsCollector.php