CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Query\LegacyKeywordFeature Interface Reference

Legacy keyword markup interface for keywords that still work by manipulating the SearchContext. More...

+ Inheritance diagram for CirrusSearch\Query\LegacyKeywordFeature:

Public Member Functions

 doApplyExtended (SearchContext $context, $key, $value, $quotedValue, $negated, $delimiter, $suffix)
 Fully featured apply method which delegates to doApply by default.
 

Detailed Description

Legacy keyword markup interface for keywords that still work by manipulating the SearchContext.

Member Function Documentation

◆ doApplyExtended()

CirrusSearch\Query\LegacyKeywordFeature::doApplyExtended ( SearchContext $context,
$key,
$value,
$quotedValue,
$negated,
$delimiter,
$suffix )

Fully featured apply method which delegates to doApply by default.

Parameters
SearchContext$context
string$keyThe keyword
string$valueThe value attached to the keyword with quotes stripped and escaped quotes un-escaped.
string$quotedValueThe original value in the search string, including quotes if used
bool$negatedIs the search negated? Not used to generate the returned AbstractQuery, that will be negated as necessary. Used for any other building/context necessary.
string$delimiterthe delimiter char used to wrap the keyword value ('"' in intitle:"test")
string$suffixthe optional suffix used after the value ('i' in insource:/regex/i)
Returns
array Two element array, first an AbstractQuery or null to apply to the query. Second a boolean indicating if the quotedValue should be kept in the search string.

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