class PhraseSearchQuery implements JsonSerializable, SearchQuery (View source)

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.

Methods

mixed
jsonSerialize()

Specify data which should be serialized to JSON

__construct(string ...$terms)

No description

boost(float $boost)

No description

field(string $field)

No description

Details

mixed jsonSerialize()

Specify data which should be serialized to JSON

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

__construct(string ...$terms)

No description

Parameters

string ...$terms

PhraseSearchQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

PhraseSearchQuery

PhraseSearchQuery field(string $field)

No description

Parameters

string $field

Return Value

PhraseSearchQuery