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, Traits and Enums

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

Table of Contents

$boost  : float|null
$field  : string|null
$terms  : array<string|int, mixed>
__construct()  : mixed
boost()  : PhraseSearchQuery
Sets the boost for this query.
build()  : PhraseSearchQuery
Static helper to keep code more readable
field()  : PhraseSearchQuery
Sets the field for this query.

Properties

Methods

__construct()

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

        

Search results