class PhraseSearchQuery implements JsonSerializable, SearchQueryPart (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()

No description

boost(float $boost)

No description

field(string $field)

No description

Details

mixed jsonSerialize()

No description

Return Value

mixed

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

PhraseSearchQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

PhraseSearchQuery

PhraseSearchQuery field(string $field)

No description

Parameters

string $field

Return Value

PhraseSearchQuery