A phrase.
More...
◆ __construct()
CirrusSearch\Parser\AST\PhraseQueryNode::__construct |
( |
| $start, |
|
|
| $end, |
|
|
| $phrase, |
|
|
| $slop, |
|
|
| $stem ) |
- Parameters
-
int | $start | |
int | $end | |
string | $phrase | |
int | $slop | the edit distance (in words) allowed between words defined in this query, set to -1 if a specific slop is not specified in the syntax. |
bool | $stem | true if the syntax specifies that this phrase should be applied to stem fields |
◆ accept()
CirrusSearch\Parser\AST\PhraseQueryNode::accept |
( |
Visitor | $visitor | ) |
|
◆ getPhrase()
CirrusSearch\Parser\AST\PhraseQueryNode::getPhrase |
( |
| ) |
|
The phrase.
- Returns
- string
◆ getSlop()
CirrusSearch\Parser\AST\PhraseQueryNode::getSlop |
( |
| ) |
|
number of words allowed between phrase words (-1 to use wiki defaults)
- Returns
- int
◆ isStem()
CirrusSearch\Parser\AST\PhraseQueryNode::isStem |
( |
| ) |
|
Should this phrase be applied on stem fields.
- Returns
- bool
◆ isUnbalanced()
CirrusSearch\Parser\AST\PhraseQueryNode::isUnbalanced |
( |
| ) |
|
True if this phrase was created by detecting unbalanced quotes in the query.
- Returns
- bool
◆ toArray()
CirrusSearch\Parser\AST\PhraseQueryNode::toArray |
( |
| ) |
|
◆ unbalanced()
static CirrusSearch\Parser\AST\PhraseQueryNode::unbalanced |
( |
| $start, |
|
|
| $end, |
|
|
| $phrase ) |
|
static |
- Parameters
-
int | $start | |
int | $end | |
string | $phrase | |
- Returns
- PhraseQueryNode
The documentation for this class was generated from the following file:
- includes/Parser/AST/PhraseQueryNode.php