CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Represents a keyword in the query. More...
Public Member Functions | |
__construct ( $startOffset, $endOffset, KeywordFeature $keyword, $key, $value, $quotedValue, $delimiter, $suffix, ?array $parsedValue=null) | |
getKeyword () | |
The feature. | |
getKey () | |
The keyword prefix used. | |
getValue () | |
The value (unescaped) | |
getQuotedValue () | |
The quoted as-is. | |
getDelimiter () | |
The delimiter used to wrap the value. | |
getSuffix () | |
The optional value suffix used in the query. | |
getParsedValue () | |
Return the value parsed by the KeywordFeature implementation. | |
toArray () | |
accept (Visitor $visitor) | |
Public Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode | |
__construct ( $startOffset, $endOffset) | |
getStartOffset () | |
getEndOffset () | |
Additional Inherited Members | |
Protected Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode | |
baseParams () | |
Represents a keyword in the query.
CirrusSearch\Parser\AST\KeywordFeatureNode::__construct | ( | $startOffset, | |
$endOffset, | |||
KeywordFeature | $keyword, | ||
$key, | |||
$value, | |||
$quotedValue, | |||
$delimiter, | |||
$suffix, | |||
?array | $parsedValue = null ) |
int | $startOffset | |
int | $endOffset | |
KeywordFeature | $keyword | |
string | $key | |
string | $value | |
string | $quotedValue | |
string | $delimiter | |
string | $suffix | |
array | null | $parsedValue | value as parsed by KeywordFeature::parseValue() |
CirrusSearch\Parser\AST\KeywordFeatureNode::accept | ( | Visitor | $visitor | ) |
Visitor | $visitor |
Implements CirrusSearch\Parser\AST\Visitor\Visitable.
CirrusSearch\Parser\AST\KeywordFeatureNode::getDelimiter | ( | ) |
The delimiter used to wrap the value.
CirrusSearch\Parser\AST\KeywordFeatureNode::getKey | ( | ) |
The keyword prefix used.
CirrusSearch\Parser\AST\KeywordFeatureNode::getKeyword | ( | ) |
The feature.
CirrusSearch\Parser\AST\KeywordFeatureNode::getParsedValue | ( | ) |
Return the value parsed by the KeywordFeature implementation.
NOTE: Only the keyword implementation knows what to do with this data
CirrusSearch\Parser\AST\KeywordFeatureNode::getQuotedValue | ( | ) |
The quoted as-is.
CirrusSearch\Parser\AST\KeywordFeatureNode::getSuffix | ( | ) |
The optional value suffix used in the query.
CirrusSearch\Parser\AST\KeywordFeatureNode::getValue | ( | ) |
The value (unescaped)
CirrusSearch\Parser\AST\KeywordFeatureNode::toArray | ( | ) |
Reimplemented from CirrusSearch\Parser\AST\ParsedNode.