Documentation

MatchSearchQuery
in package
implements JsonSerializable, SearchQuery

A FTS query that matches a given term, applying further processing to it like analyzers, stemming and even #fuzziness(int).

Interfaces, Classes, Traits and Enums

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

Table of Contents

OPERATOR_AND  = "and"
OPERATOR_OR  = "or"
$analyzer  : string|null
$boost  : float|null
$field  : string|null
$fuzziness  : int|null
$match  : string
$operator  : string|null
$prefixLength  : int|null
__construct()  : mixed
analyzer()  : MatchSearchQuery
Sets the analytics for this query.
boost()  : MatchSearchQuery
Sets the boost for this query.
build()  : MatchSearchQuery
Static helper to keep code more readable
field()  : MatchSearchQuery
Sets the field for this query.
fuzziness()  : MatchSearchQuery
Set the fuzziness for this query.
operator()  : MatchSearchQuery
Set the operator for this query.
prefixLength()  : MatchSearchQuery
Sets the prefix length for this query.

Constants

Properties

Methods

__construct()

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

        

Search results