CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Limits the search to the local wiki. More...
Public Member Functions | |
hasValue () | |
queryHeader () | |
getCrossSearchStrategy (KeywordFeatureNode $node) | |
Public Member Functions inherited from CirrusSearch\Query\SimpleKeywordFeature | |
getKeywordPrefixes () | |
allowEmptyValue () | |
Whether this keyword allows empty value. | |
greedy () | |
Whether this keyword is greedy consuming the rest of the string. | |
getFeatureName ( $key, $valueDelimiter) | |
Determine the name of the feature being set in SearchContext::addSyntaxUsed Defaults to $key. | |
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. | |
expand (KeywordFeatureNode $node, SearchConfig $config, WarningCollector $warningCollector) | |
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 () | |
doApply (SearchContext $context, $key, $value, $quotedValue, $negated) | |
Applies the detected keyword from the search term. | |
Limits the search to the local wiki.
Primarily this excludes results from commons when searching the NS_FILE namespace. No value may be provided along with this keyword, it is a simple boolean flag.
|
protected |
Applies the detected keyword from the search term.
May apply changes either to $context directly, or return a filter to be added.
SearchContext | $context | |
string | $key | The keyword |
string | $value | The value attached to the keyword with quotes stripped and escaped quotes un-escaped. |
string | $quotedValue | The original value in the search string, including quotes if used |
bool | $negated | Is the search negated? Not used to generate the returned AbstractQuery, that will be negated as necessary. Used for any other building/context necessary. |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\LocalFeature::getCrossSearchStrategy | ( | KeywordFeatureNode | $node | ) |
KeywordFeatureNode | $node |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
|
protected |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\LocalFeature::hasValue | ( | ) |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\LocalFeature::queryHeader | ( | ) |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.