CirrusSearch
Elasticsearch-powered search for MediaWiki
|
A "namespace header" in the query. More...
Public Member Functions | |
__construct ( $startOffset, $endOffset, $namespace) | |
toArray () | |
getNamespace () | |
accept (Visitor $visitor) | |
Public Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode | |
__construct ( $startOffset, $endOffset) | |
getStartOffset () | |
getEndOffset () | |
Additional Inherited Members | |
Protected Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode | |
baseParams () | |
A "namespace header" in the query.
Queries can be prefixed with a namespace header that allows to bypass namespaces selection made with API params or Special:Search UI. e.g.:
will search foobar in NS_HELP no matter what is selected previously.
CirrusSearch\Parser\AST\NamespaceHeaderNode::__construct | ( | $startOffset, | |
$endOffset, | |||
$namespace ) |
int | $startOffset | |
int | $endOffset | |
int | string | $namespace | "all" or a int. |
CirrusSearch\Parser\AST\NamespaceHeaderNode::accept | ( | Visitor | $visitor | ) |
Visitor | $visitor |
Implements CirrusSearch\Parser\AST\Visitor\Visitable.
CirrusSearch\Parser\AST\NamespaceHeaderNode::getNamespace | ( | ) |
CirrusSearch\Parser\AST\NamespaceHeaderNode::toArray | ( | ) |
Reimplemented from CirrusSearch\Parser\AST\ParsedNode.