Documentation

NumericRangeSearchQuery
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  : float|null
$min  : float|null
boost()  : NumericRangeSearchQuery
Sets the boost for this query.
build()  : NumericRangeSearchQuery
Static helper to keep code more readable
field()  : NumericRangeSearchQuery
Sets the field for this query.
max()  : NumericRangeSearchQuery
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
min()  : NumericRangeSearchQuery
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(float $max[, bool $inclusive = false ]) : NumericRangeSearchQuery
Parameters
$max : float

the upper boundary of the range.

$inclusive : bool = false

whether the upper boundary should be inclusive.

Tags
since
4.0.0
Return values
NumericRangeSearchQuery

min()

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

public min(float $min[, bool $inclusive = true ]) : NumericRangeSearchQuery
Parameters
$min : float

the lower boundary of the range.

$inclusive : bool = true

whether the lower boundary should be inclusive.

Tags
since
4.0.0
Return values
NumericRangeSearchQuery

        

Search results