CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Filter by a set of page IDs. More...
Public Member Functions | |
getFilterQuery (KeywordFeatureNode $node, QueryBuildingContext $context) | |
@inheritDoc | |
parseValue ( $key, $value, $quotedValue, $valueDelimiter, $suffix, WarningCollector $warningCollector) | |
@inheritDoc | |
Public Member Functions inherited from CirrusSearch\Query\SimpleKeywordFeature | |
getKeywordPrefixes () | |
allowEmptyValue () | |
Whether this keyword allows empty value. | |
hasValue () | |
Whether this keyword can have a value. | |
greedy () | |
Whether this keyword is greedy consuming the rest of the string. | |
queryHeader () | |
Whether this keyword can appear only at the beginning of the query (excluding spaces) | |
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) | |
getCrossSearchStrategy (KeywordFeatureNode $node) | |
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 Attributes | |
const | MAX_VALUES = 1000 |
Maximum number of IDs allowed. | |
Protected Member Functions | |
doGetFilterQuery (array $parsedValue, SearchConfig $searchConfig) | |
getKeywords () | |
@inheritDoc | |
doApply (SearchContext $context, $key, $value, $quotedValue, $negated) | |
@inheritDoc | |
Filter by a set of page IDs.
This is useful for re-validating cached query results. Format: pageid:1|2|3
|
protected |
@inheritDoc
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
|
protected |
array | $parsedValue | |
SearchConfig | $searchConfig |
CirrusSearch\Query\PageIdFeature::getFilterQuery | ( | KeywordFeatureNode | $node, |
QueryBuildingContext | $context ) |
@inheritDoc
Implements CirrusSearch\Query\FilterQueryFeature.
|
protected |
@inheritDoc
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\PageIdFeature::parseValue | ( | $key, | |
$value, | |||
$quotedValue, | |||
$valueDelimiter, | |||
$suffix, | |||
WarningCollector | $warningCollector ) |
@inheritDoc
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.