QueryStringSearchQuery
in package
implements
JsonSerializable, SearchQuery
A FTS query that performs a search according to the "string query" syntax.
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
- $queryString : string
- __construct() : mixed
- boost() : QueryStringSearchQuery
- Sets the boost for this query.
- build() : QueryStringSearchQuery
- Static helper to keep code more readable
Properties
$boost
private
float|null
$boost
= null
$queryString
private
string
$queryString
Methods
__construct()
public
__construct(string $queryString) : mixed
Parameters
- $queryString : string
Return values
mixed —boost()
Sets the boost for this query.
public
boost(float $boost) : QueryStringSearchQuery
Parameters
- $boost : float
-
the boost value to use.
Tags
Return values
QueryStringSearchQuery —build()
Static helper to keep code more readable
public
static build(string $queryString) : QueryStringSearchQuery
Parameters
- $queryString : string