BooleanFieldSearchQuery
in package
implements
JsonSerializable, SearchQuery
A FTS query that queries fields explicitly indexed as boolean.
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
- $value : bool
- __construct() : mixed
- boost() : BooleanFieldSearchQuery
- Sets the boost for this query.
- build() : BooleanFieldSearchQuery
- Static helper to keep code more readable
- field() : BooleanFieldSearchQuery
- Sets the field for this query.
Properties
$boost
private
float|null
$boost
= null
$field
private
string|null
$field
= null
$value
private
bool
$value
Methods
__construct()
public
__construct(bool $value) : mixed
Parameters
- $value : bool
Return values
mixed —boost()
Sets the boost for this query.
public
boost(float $boost) : BooleanFieldSearchQuery
Parameters
- $boost : float
-
the boost value to use.
Tags
Return values
BooleanFieldSearchQuery —build()
Static helper to keep code more readable
public
static build(bool $value) : BooleanFieldSearchQuery
Parameters
- $value : bool
Tags
Return values
BooleanFieldSearchQuery —field()
Sets the field for this query.
public
field(string $field) : BooleanFieldSearchQuery
Parameters
- $field : string
-
the field to use.