CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Parser\ParsedQueryClassifiersRepository Interface Reference

Repository of query classifiers. More...

+ Inheritance diagram for CirrusSearch\Parser\ParsedQueryClassifiersRepository:

Public Member Functions

 registerClassifier (ParsedQueryClassifier $classifier)
 
 registerClassifierAsCallable (array $classes, callable $callable)
 
 getConfig ()
 The host wiki SearchConfig.
 
 getClassifier ( $name)
 
 getKnownClassifiers ()
 List known classifiers.
 

Detailed Description

Repository of query classifiers.

Member Function Documentation

◆ getClassifier()

CirrusSearch\Parser\ParsedQueryClassifiersRepository::getClassifier ( $name)
Parameters
string$name
Returns
ParsedQueryClassifier

Implemented in CirrusSearch\Parser\FTQueryClassifiersRepository.

◆ getConfig()

CirrusSearch\Parser\ParsedQueryClassifiersRepository::getConfig ( )

The host wiki SearchConfig.

Returns
SearchConfig

Implemented in CirrusSearch\Parser\FTQueryClassifiersRepository.

◆ getKnownClassifiers()

CirrusSearch\Parser\ParsedQueryClassifiersRepository::getKnownClassifiers ( )

List known classifiers.

Returns
string[]

Implemented in CirrusSearch\Parser\FTQueryClassifiersRepository.

◆ registerClassifier()

CirrusSearch\Parser\ParsedQueryClassifiersRepository::registerClassifier ( ParsedQueryClassifier $classifier)
Parameters
ParsedQueryClassifier$classifier
Exceptions
ParsedQueryClassifierException

Implemented in CirrusSearch\Parser\FTQueryClassifiersRepository.

◆ registerClassifierAsCallable()

CirrusSearch\Parser\ParsedQueryClassifiersRepository::registerClassifierAsCallable ( array $classes,
callable $callable )
Parameters
string[]$classeslist of classes that this classifier can produce
callable$callablecalled as ParsedQueryClassifier::classify( ParsedQuery $query )
Exceptions
ParsedQueryClassifierException
See also
ParsedQueryClassifier::classify()

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