A boolean clause.
More...
|
const | MUST = 'MUST' |
|
const | SHOULD = 'SHOULD' |
|
const | MUST_NOT = 'MUST_NOT' |
|
◆ __construct()
CirrusSearch\Parser\AST\BooleanClause::__construct |
( |
ParsedNode | $node, |
|
|
| $occur, |
|
|
| $explicit, |
|
|
?NegatedNode | $negatedNode = null ) |
- Parameters
-
ParsedNode | $node | |
string | $occur | Specifies how this clause is to occur in matching documents. |
bool | $explicit | whether or not this node is explicitly connected |
NegatedNode | null | $negatedNode | when in a MUST_NOT, remember how this clause was negated acceptable values are BooleanClause::MUST, BooleanClause::MUST_NOT and BooleanClause::SHOULD |
◆ accept()
CirrusSearch\Parser\AST\BooleanClause::accept |
( |
Visitor | $visitor | ) |
|
◆ getNegatedNode()
CirrusSearch\Parser\AST\BooleanClause::getNegatedNode |
( |
| ) |
|
◆ getNode()
CirrusSearch\Parser\AST\BooleanClause::getNode |
( |
| ) |
|
◆ getOccur()
CirrusSearch\Parser\AST\BooleanClause::getOccur |
( |
| ) |
|
Specifies how this clause is to occur in matching documents.
- Returns
- string
◆ isExplicit()
CirrusSearch\Parser\AST\BooleanClause::isExplicit |
( |
| ) |
|
◆ validateOccur()
static CirrusSearch\Parser\AST\BooleanClause::validateOccur |
( |
| $occur | ) |
|
|
static |
Check if $occur is valid.
- Parameters
-
The documentation for this class was generated from the following file:
- includes/Parser/AST/BooleanClause.php