CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Basic classifier to identify queries like: More...
Public Member Functions | |
classify (ParsedQuery $query) | |
visitWordsQueryNode (WordsQueryNode $node) | |
visitPhraseQueryNode (PhraseQueryNode $node) | |
visitPhrasePrefixNode (PhrasePrefixNode $node) | |
visitFuzzyNode (FuzzyNode $node) | |
visitPrefixNode (PrefixNode $node) | |
visitWildcardNode (WildcardNode $node) | |
visitEmptyQueryNode (EmptyQueryNode $node) | |
visitKeywordFeatureNode (KeywordFeatureNode $node) | |
visitParsedBooleanNode (ParsedBooleanNode $node) | |
visitBooleanClause (BooleanClause $clause) | |
visitNegatedNode (NegatedNode $node) | |
classes () | |
visitNamespaceHeader (NamespaceHeaderNode $node) | |
Public Attributes | |
const | SIMPLE_BAG_OF_WORDS = 'simple_bag_of_words' |
The simplest query ever: only words. | |
const | SIMPLE_PHRASE = 'simple_phrase_query' |
Only quoted words. | |
const | BAG_OF_WORDS_WITH_PHRASE = 'bag_of_words_with_phrase_query' |
A simple bag of words query with some quoted words. | |
const | COMPLEX_QUERY = 'complex_query' |
Expert: a query that uses some special syntax such as: | |
const | BOGUS_QUERY = 'bogus_query' |
Query that was fixed/corrected. | |
Basic classifier to identify queries like:
CirrusSearch\Parser\BasicQueryClassifier::classes | ( | ) |
Implements CirrusSearch\Parser\ParsedQueryClassifier.
CirrusSearch\Parser\BasicQueryClassifier::classify | ( | ParsedQuery | $query | ) |
CirrusSearch\Parser\BasicQueryClassifier::visitBooleanClause | ( | BooleanClause | $clause | ) |
BooleanClause | $clause |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitEmptyQueryNode | ( | EmptyQueryNode | $node | ) |
EmptyQueryNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitFuzzyNode | ( | FuzzyNode | $node | ) |
FuzzyNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitKeywordFeatureNode | ( | KeywordFeatureNode | $node | ) |
KeywordFeatureNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitNamespaceHeader | ( | NamespaceHeaderNode | $node | ) |
NamespaceHeaderNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitNegatedNode | ( | NegatedNode | $node | ) |
NegatedNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitParsedBooleanNode | ( | ParsedBooleanNode | $node | ) |
ParsedBooleanNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitPhrasePrefixNode | ( | PhrasePrefixNode | $node | ) |
PhrasePrefixNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitPhraseQueryNode | ( | PhraseQueryNode | $node | ) |
PhraseQueryNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitPrefixNode | ( | PrefixNode | $node | ) |
PrefixNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitWildcardNode | ( | WildcardNode | $node | ) |
WildcardNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
CirrusSearch\Parser\BasicQueryClassifier::visitWordsQueryNode | ( | WordsQueryNode | $node | ) |
WordsQueryNode | $node |
Implements CirrusSearch\Parser\AST\Visitor\Visitor.
const CirrusSearch\Parser\BasicQueryClassifier::COMPLEX_QUERY = 'complex_query' |
Expert: a query that uses some special syntax such as: