Documentation

TermRangeSearchQuery
in package
implements JsonSerializable, SearchQuery

A FTS query that matches documents on a range of values. At least one bound is required, and the inclusiveness of each bound can be configured.

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
$inclusiveMax  : bool|null
$inclusiveMin  : bool|null
$max  : string|null
$min  : string|null
boost()  : TermRangeSearchQuery
Sets the boost for this query.
build()  : TermRangeSearchQuery
Static helper to keep code more readable
field()  : TermRangeSearchQuery
Sets the field for this query.
max()  : TermRangeSearchQuery
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
min()  : TermRangeSearchQuery
Sets the lower boundary of the range, inclusive or not depending on the second parameter.

Properties

Methods

max()

Sets the upper boundary of the range, inclusive or not depending on the second parameter.

public max(string $max[, bool $inclusive = false ]) : TermRangeSearchQuery
Parameters
$max : string

the upper boundary of the range.

$inclusive : bool = false

whether the upper boundary should be inclusive.

Tags
since
4.0.0
Return values
TermRangeSearchQuery

min()

Sets the lower boundary of the range, inclusive or not depending on the second parameter.

public min(string $min[, bool $inclusive = true ]) : TermRangeSearchQuery
Parameters
$min : string

the lower boundary of the range.

$inclusive : bool = true

whether the lower boundary should be inclusive.

Tags
since
4.0.0
Return values
TermRangeSearchQuery

        

Search results