Documentation

DisjunctionSearchQuery
in package
implements JsonSerializable, SearchQuery

A compound FTS query that performs a logical OR between all its sub-queries (disjunction). It requires that a minimum of the queries match. The minimum is configurable (default 1).

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
$min  : int|null
$queries  : array<string|int, mixed>
__construct()  : mixed
boost()  : DisjunctionSearchQuery
Sets the boost for this query.
build()  : DisjunctionSearchQuery
Static helper to keep code more readable
childQueries()  : array<string|int, mixed>
either()  : DisjunctionSearchQuery
min()  : DisjunctionSearchQuery
or()  : DisjunctionSearchQuery
Adds new predicate queries to this disjunction query.

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $queries) : mixed
Parameters
$queries : array<string|int, mixed>
Return values
mixed

childQueries()

public childQueries() : array<string|int, mixed>
Return values
array<string|int, mixed>

        

Search results