CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Result type for a full text search. More...
Public Member Functions | |
__construct (FetchPhaseConfigBuilder $fetchPhaseBuilder, $searchContainedSyntax, TitleHelper $titleHelper, array $extraFieldsToExtract=[]) | |
getSourceFiltering () | |
getFields () | |
getHighlightingConfiguration (array $extraHighlightFields=[]) | |
Setup highlighting. | |
withFetchPhaseBuilder (FetchPhaseConfigBuilder $builder) | |
createEmptyResult () | |
Public Member Functions inherited from CirrusSearch\Search\ResultsType | |
transformElasticsearchResult (ElasticaResultSet $resultSet) | |
Result type for a full text search.
CirrusSearch\Search\FullTextResultsType::__construct | ( | FetchPhaseConfigBuilder | $fetchPhaseBuilder, |
$searchContainedSyntax, | |||
TitleHelper | $titleHelper, | ||
array | $extraFieldsToExtract = [] ) |
FetchPhaseConfigBuilder | $fetchPhaseBuilder | |
bool | $searchContainedSyntax | |
TitleHelper | $titleHelper | |
string[] | $extraFieldsToExtract |
CirrusSearch\Search\FullTextResultsType::createEmptyResult | ( | ) |
Implements CirrusSearch\Search\ResultsType.
CirrusSearch\Search\FullTextResultsType::getFields | ( | ) |
Implements CirrusSearch\Search\ResultsType.
CirrusSearch\Search\FullTextResultsType::getHighlightingConfiguration | ( | array | $extraHighlightFields = [] | ) |
Setup highlighting.
Don't fragment title because it is small. Get just one fragment from the text because that is all we will display. Get one fragment from redirect title and heading each or else they won't be sorted by score.
array | $extraHighlightFields | (deprecated and ignored) |
Implements CirrusSearch\Search\ResultsType.
CirrusSearch\Search\FullTextResultsType::getSourceFiltering | ( | ) |
Reimplemented from CirrusSearch\Search\BaseResultsType.
CirrusSearch\Search\FullTextResultsType::withFetchPhaseBuilder | ( | FetchPhaseConfigBuilder | $builder | ) |
FetchPhaseConfigBuilder | $builder |