CirrusSearch
Elasticsearch-powered search for MediaWiki
|
File features: filebits:16 - bit depth filesize:>300 - size >= 300 kb filew:100,300 - search of 100 <= file_width <= 300 Selects only files of these specified features. More...
Public Member Functions | |
getCrossSearchStrategy (KeywordFeatureNode $node) | |
parseValue ( $key, $value, $quotedValue, $valueDelimiter, $suffix, WarningCollector $warningCollector) | |
getFilterQuery (KeywordFeatureNode $node, QueryBuildingContext $context) | |
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) | |
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) | |
Protected Member Functions | |
getKeywords () | |
doApply (SearchContext $context, $key, $value, $quotedValue, $negated) | |
extractSign ( $value, $default=0) | |
Extract sign prefix which can be < or > or nothing. | |
nanWarning (WarningCollector $warningCollector, $key, $notANumber) | |
Adds a warning to the search context that the $key keyword was provided with the invalid value $notANumber. | |
doGetFilterQuery ( $key, $parsedValue) | |
File features: filebits:16 - bit depth filesize:>300 - size >= 300 kb filew:100,300 - search of 100 <= file_width <= 300 Selects only files of these specified features.
|
protected |
SearchContext | $context | |
string | $key | The keyword |
string | $value | The value attached to the keyword with quotes stripped |
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.
|
protected |
string | $key | |
array | $parsedValue |
|
protected |
Extract sign prefix which can be < or > or nothing.
string | $value | |
int | $default |
CirrusSearch\Query\IndexedNumericFieldFeature::getCrossSearchStrategy | ( | KeywordFeatureNode | $node | ) |
KeywordFeatureNode | $node |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
CirrusSearch\Query\IndexedNumericFieldFeature::getFilterQuery | ( | KeywordFeatureNode | $node, |
QueryBuildingContext | $context ) |
KeywordFeatureNode | $node | |
QueryBuildingContext | $context |
Implements CirrusSearch\Query\FilterQueryFeature.
|
protected |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.
|
protected |
Adds a warning to the search context that the $key keyword was provided with the invalid value $notANumber.
WarningCollector | $warningCollector | |
string | $key | |
string | $notANumber |
CirrusSearch\Query\IndexedNumericFieldFeature::parseValue | ( | $key, | |
$value, | |||
$quotedValue, | |||
$valueDelimiter, | |||
$suffix, | |||
WarningCollector | $warningCollector ) |
string | $key | |
string | $value | |
string | $quotedValue | |
string | $valueDelimiter | |
string | $suffix | |
WarningCollector | $warningCollector |
Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.