ConjunctionSearchQuery
in package
implements
JsonSerializable, SearchQuery
A compound FTS query that performs a logical AND between all its sub-queries (conjunction).
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
- $queries : array<string|int, mixed>
- __construct() : mixed
- and() : ConjunctionSearchQuery
- Adds new predicate queries to this conjunction query.
- boost() : ConjunctionSearchQuery
- Sets the boost for this query.
- build() : ConjunctionSearchQuery
- Static helper to keep code more readable
- childQueries() : array<string|int, mixed>
- every() : ConjunctionSearchQuery
Properties
$boost
private
float|null
$boost
= null
$queries
private
array<string|int, mixed>
$queries
Methods
__construct()
public
__construct(array<string|int, mixed> $queries) : mixed
Parameters
- $queries : array<string|int, mixed>
Return values
mixed —and()
Adds new predicate queries to this conjunction query.
public
and(SearchQuery ...$queries) : ConjunctionSearchQuery
Parameters
- $queries : SearchQuery
-
the queries to add.
Tags
Return values
ConjunctionSearchQuery —boost()
Sets the boost for this query.
public
boost(float $boost) : ConjunctionSearchQuery
Parameters
- $boost : float
-
the boost value to use.
Tags
Return values
ConjunctionSearchQuery —build()
Static helper to keep code more readable
public
static build(array<string|int, mixed> $queries) : ConjunctionSearchQuery
Parameters
- $queries : array<string|int, mixed>
Tags
Return values
ConjunctionSearchQuery —childQueries()
public
childQueries() : array<string|int, mixed>
Return values
array<string|int, mixed> —every()
public
every(SearchQuery ...$queries) : ConjunctionSearchQuery
Parameters
- $queries : SearchQuery