CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Parser\QueryStringRegex\KeywordParser Class Reference

Parser for KeywordFeature. More...

+ Inheritance diagram for CirrusSearch\Parser\QueryStringRegex\KeywordParser:
+ Collaboration diagram for CirrusSearch\Parser\QueryStringRegex\KeywordParser:

Public Member Functions

 parse ( $query, KeywordFeature $feature, OffsetTracker $tracker, $startOffset=0)
 
 getWarnings ()
 
 addWarning ( $message,... $params)
 Add a warning.
 

Detailed Description

Parser for KeywordFeature.

Member Function Documentation

◆ addWarning()

CirrusSearch\Parser\QueryStringRegex\KeywordParser::addWarning ( $message,
$params )

Add a warning.

Parameters
string$messagei18n message key
mixed...$params

Implements CirrusSearch\WarningCollector.

◆ getWarnings()

CirrusSearch\Parser\QueryStringRegex\KeywordParser::getWarnings ( )
Returns
ParseWarning[]

◆ parse()

CirrusSearch\Parser\QueryStringRegex\KeywordParser::parse ( $query,
KeywordFeature $feature,
OffsetTracker $tracker,
$startOffset = 0 )
Parameters
string$query
KeywordFeature$feature
OffsetTracker$tracker
int$startOffsetstart offset of the query in $query
Returns
ParsedNode[]

The documentation for this class was generated from the following file: