Documentation

PhraseSearchQuery
in package
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.

Interfaces, Classes and Traits

JsonSerializable
SearchQuery
Common interface for all classes, which could be used as a body of SearchQuery

Table of Contents

__construct()  : mixed
boost()  : PhraseSearchQuery
field()  : PhraseSearchQuery
jsonSerialize()  : mixed

Methods

__construct()

public __construct(string ...$terms) : mixed
Parameters
$terms : string
Return values
mixed

jsonSerialize()

public jsonSerialize() : mixed
Return values
mixed

Search results