class NumericRangeSearchQuery implements JsonSerializable, SearchQueryPart (View source)

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.

Methods

mixed
jsonSerialize()

No description

boost(float $boost)

No description

field(string $field)

No description

min(float $min, bool $inclusive = true)

No description

max(float $max, bool $inclusive = false)

No description

Details

mixed jsonSerialize()

No description

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

NumericRangeSearchQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

NumericRangeSearchQuery

NumericRangeSearchQuery field(string $field)

No description

Parameters

string $field

Return Value

NumericRangeSearchQuery

NumericRangeSearchQuery min(float $min, bool $inclusive = true)

No description

Parameters

float $min
bool $inclusive

Return Value

NumericRangeSearchQuery

NumericRangeSearchQuery max(float $max, bool $inclusive = false)

No description

Parameters

float $max
bool $inclusive

Return Value

NumericRangeSearchQuery