PhraseSearchQuery implements JsonSerializable, SearchQuery
A FTS query that matches several terms (a "phrase") as is. The order of the terms mater and no further processing is applied to them, so they must appear in the index exactly as provided. Usually for debugging purposes, prefer MatchPhraseQuery.
Table of Contents
jsonSerialize() | mixed | |
---|---|---|
__construct() | mixed | |
boost() | PhraseSearchQuery | |
field() | PhraseSearchQuery |
Methods
jsonSerialize()
public
jsonSerialize(
)
: mixed
Return values
mixed__construct()
public
__construct(
...$terms :
string
)
: mixed
Parameters
- $terms : string
Return values
mixedboost()
public
boost(
$boost :
float
)
: PhraseSearchQuery
Parameters
- $boost : float
Return values
PhraseSearchQueryfield()
public
field(
$field :
string
)
: PhraseSearchQuery
Parameters
- $field : string