CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Extra builder for the completion suggester index. More...
Public Member Functions | |
build (array $inputDoc, $suggestType, $score, \Elastica\Document $suggestDoc, $targetNamespace) | |
Builds extra suggestions. | |
getRequiredFields () | |
The fields needed by this extra builder. | |
Extra builder for the completion suggester index.
Useful to add extra suggestions that are not part of the default strategy.
CirrusSearch\BuildDocument\Completion\ExtraSuggestionsBuilder::build | ( | array | $inputDoc, |
$suggestType, | |||
$score, | |||
\Elastica\Document | $suggestDoc, | ||
$targetNamespace ) |
Builds extra suggestions.
This method can be called twice per cirrus document.
mixed[] | $inputDoc | |
string | $suggestType | (title or redirect) |
int | $score | |
\Elastica\Document | $suggestDoc | suggestion type (title or redirect) |
int | $targetNamespace |
Implemented in CirrusSearch\BuildDocument\Completion\DefaultSortSuggestionsBuilder, and CirrusSearch\BuildDocument\Completion\NaiveSubphrasesSuggestionsBuilder.
CirrusSearch\BuildDocument\Completion\ExtraSuggestionsBuilder::getRequiredFields | ( | ) |
The fields needed by this extra builder.
Implemented in CirrusSearch\BuildDocument\Completion\DefaultSortSuggestionsBuilder, and CirrusSearch\BuildDocument\Completion\NaiveSubphrasesSuggestionsBuilder.