CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Class holding the building state of the fetch phase elements of an elasticsearch query. More...
Public Member Functions | |
__construct (SearchConfig $config, $factoryGroup=null, bool $provideAllSnippets=false) | |
newHighlightField ( $name, $target, $priority=HighlightedField::DEFAULT_TARGET_PRIORITY) | |
@inheritDoc | |
addNewRegexHLField ( $name, $target, $pattern, $caseInsensitive, $priority=HighlightedField::COSTLY_EXPERT_SYNTAX_PRIORITY) | |
supportsRegexFields () | |
Whether this builder can generate regex fields. | |
newRegexField ( $name, $target, $pattern, $caseInsensitive, $priority=HighlightedField::COSTLY_EXPERT_SYNTAX_PRIORITY) | |
@inheritDoc | |
addHLField (HighlightedField $field) | |
getHLField ( $field) | |
buildHLConfig (?AbstractQuery $mainHLQuery=null) | |
withConfig (SearchConfig $config) | |
getHLFieldsPerTargetAndPriority () | |
Return the list of highlighted fields indexed per target and ordered by priority (reverse natural order) | |
configureDefaultFullTextFields () | |
Class holding the building state of the fetch phase elements of an elasticsearch query.
Currently only supports the highlight section but can be extended to support source filtering and stored field.
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::__construct | ( | SearchConfig | $config, |
$factoryGroup = null, | |||
bool | $provideAllSnippets = false ) |
SearchConfig | $config | |
string | null | $factoryGroup | |
bool | $provideAllSnippets |
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::addHLField | ( | HighlightedField | $field | ) |
HighlightedField | $field |
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::addNewRegexHLField | ( | $name, | |
$target, | |||
$pattern, | |||
$caseInsensitive, | |||
$priority = HighlightedField::COSTLY_EXPERT_SYNTAX_PRIORITY ) |
string | $name | |
string | $target | |
string | $pattern | |
bool | $caseInsensitive | |
int | $priority |
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::buildHLConfig | ( | ?AbstractQuery | $mainHLQuery = null | ) |
AbstractQuery | null | $mainHLQuery |
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::getHLField | ( | $field | ) |
string | $field |
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::getHLFieldsPerTargetAndPriority | ( | ) |
Return the list of highlighted fields indexed per target and ordered by priority (reverse natural order)
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::newHighlightField | ( | $name, | |
$target, | |||
$priority = HighlightedField::DEFAULT_TARGET_PRIORITY ) |
@inheritDoc
Implements CirrusSearch\Search\Fetch\HighlightFieldGenerator.
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::newRegexField | ( | $name, | |
$target, | |||
$pattern, | |||
$caseInsensitive, | |||
$priority = HighlightedField::COSTLY_EXPERT_SYNTAX_PRIORITY ) |
@inheritDoc
Implements CirrusSearch\Search\Fetch\HighlightFieldGenerator.
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::supportsRegexFields | ( | ) |
Whether this builder can generate regex fields.
Implements CirrusSearch\Search\Fetch\HighlightFieldGenerator.
CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder::withConfig | ( | SearchConfig | $config | ) |
SearchConfig | $config |