WildcardSearchQuery
in package
implements
JsonSerializable, SearchQuery
A FTS query that allows for simple matching using wildcard characters (* and ?).
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
- $wildcard : string
- __construct() : mixed
- boost() : WildcardSearchQuery
- Sets the boost for this query.
- build() : WildcardSearchQuery
- Static helper to keep code more readable
- field() : WildcardSearchQuery
- Sets the field for this query.
Properties
$boost
private
float|null
$boost
= null
$field
private
string|null
$field
= null
$wildcard
private
string
$wildcard
Methods
__construct()
public
__construct(string $wildcard) : mixed
Parameters
- $wildcard : string
Return values
mixed —boost()
Sets the boost for this query.
public
boost(float $boost) : WildcardSearchQuery
Parameters
- $boost : float
-
the boost value to use.
Tags
Return values
WildcardSearchQuery —build()
Static helper to keep code more readable
public
static build(string $wildcard) : WildcardSearchQuery
Parameters
- $wildcard : string
Tags
Return values
WildcardSearchQuery —field()
Sets the field for this query.
public
field(string $field) : WildcardSearchQuery
Parameters
- $field : string
-
the field to use.