CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Query\MoreLikeThisFeature Class Reference

Finds pages similar to another one. More...

+ Inheritance diagram for CirrusSearch\Query\MoreLikeThisFeature:
+ Collaboration diagram for CirrusSearch\Query\MoreLikeThisFeature:

Public Member Functions

 __construct (SearchConfig $config)
 
 getFeatureName ( $key, $valueDelimiter)
 @inheritDoc
 
 getConfig ()
 
- 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)
 
 getValueDelimiters ()
 List of value delimiters supported (must be an array of single byte char)
 
 parseValue ( $key, $value, $quotedValue, $valueDelimiter, $suffix, WarningCollector $warningCollector)
 Parse the value of the keyword.
 
 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)
 

Protected Member Functions

 getKeywords ()
 @inheritDoc
 
 doApply (SearchContext $context, $key, $value, $quotedValue, $negated)
 @inheritDoc
 

Detailed Description

Finds pages similar to another one.

(Non-greedy replacement of MoreLikeFeature)

Member Function Documentation

◆ doApply()

CirrusSearch\Query\MoreLikeThisFeature::doApply ( SearchContext $context,
$key,
$value,
$quotedValue,
$negated )
protected

@inheritDoc

Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.

◆ getConfig()

CirrusSearch\Query\MoreLikeThisFeature::getConfig ( )
Returns
SearchConfig

◆ getFeatureName()

CirrusSearch\Query\MoreLikeThisFeature::getFeatureName ( $key,
$valueDelimiter )

@inheritDoc

Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.

◆ getKeywords()

CirrusSearch\Query\MoreLikeThisFeature::getKeywords ( )
protected

@inheritDoc

Reimplemented from CirrusSearch\Query\SimpleKeywordFeature.


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