CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Finds pages similar to another one. More...
Public Member Functions | |
__construct (SearchConfig $config) | |
greedy () | |
queryHeader () | |
morelike is only allowed at the beginning of the query | |
getFeatureName ( $key, $valueDelimiter) | |
getCrossSearchStrategy (KeywordFeatureNode $node) | |
expand (KeywordFeatureNode $node, SearchConfig $config, WarningCollector $warningCollector) | |
getConfig () | |
Public Member Functions inherited from CirrusSearch\Query\SimpleKeywordFeature | |
getKeywordPrefixes () | |
allowEmptyValue () | |
Whether this keyword allows empty value. | |
hasValue () | |
Whether this keyword can have a value. | |
getValueDelimiters () | |
List of value delimiters supported (must be an array of single byte char) | |
parseValue ( $key, $value, $quotedValue, $valueDelimiter, $suffix, WarningCollector $warningCollector) | |
Parse the value of the keyword. | |
doApplyExtended (SearchContext $context, $key, $value, $quotedValue, $negated, $delimiter, $suffix) | |
Fully featured apply method which delegates to doApply by default. | |
apply (SearchContext $context, $term) | |
Public Member Functions inherited from CirrusSearch\Query\LegacyKeywordFeature | |
doApplyExtended (SearchContext $context, $key, $value, $quotedValue, $negated, $delimiter, $suffix) | |
Fully featured apply method which delegates to doApply by default. | |
Protected Member Functions | |
getKeywords () | |
@inheritDoc | |
doApply (SearchContext $context, $key, $value, $quotedValue, $negated) | |
Finds pages similar to another one.
Greedy keyword kept for BC purposes, MoreLikeThisFeature should be preferred.
CirrusSearch\Query\MoreLikeFeature::__construct | ( | SearchConfig | $config | ) |
SearchConfig | $config |
|
protected |
SearchContext | $context | |
string | $key | |
string | $value | |
string | $quotedValue | |
bool | $negated |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\MoreLikeFeature::expand | ( | KeywordFeatureNode | $node, |
SearchConfig | $config, | ||
WarningCollector | $warningCollector ) |
KeywordFeatureNode | $node | |
SearchConfig | $config | |
WarningCollector | $warningCollector |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\MoreLikeFeature::getConfig | ( | ) |
CirrusSearch\Query\MoreLikeFeature::getCrossSearchStrategy | ( | KeywordFeatureNode | $node | ) |
KeywordFeatureNode | $node |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\MoreLikeFeature::getFeatureName | ( | $key, | |
$valueDelimiter ) |
string | $key | |
string | $valueDelimiter |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
|
protected |
@inheritDoc
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\MoreLikeFeature::greedy | ( | ) |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\MoreLikeFeature::queryHeader | ( | ) |
morelike is only allowed at the beginning of the query
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.