Documentation

MatchPhraseSearchQuery
in package
implements JsonSerializable, SearchQuery

A FTS query that matches several given terms (a "phrase"), applying further processing like analyzers to them.

Interfaces, Classes, Traits and Enums

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

Table of Contents

$analyzer  : string|null
$boost  : float|null
$field  : string|null
$matchPhrase  : string
__construct()  : mixed
analyzer()  : MatchPhraseSearchQuery
Sets the analytics for this query.
boost()  : MatchPhraseSearchQuery
Sets the boost for this query.
build()  : MatchPhraseSearchQuery
Static helper to keep code more readable
field()  : MatchPhraseSearchQuery
Sets the field for this query.

Properties

Methods

__construct()

public __construct(string $phrase) : mixed
Parameters
$phrase : string
Return values
mixed

        

Search results