Smile\ElasticsuiteCore\Search\Request\Query\Range::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $field, array $bounds = [], string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE )
$field string Query field.
$bounds array Range filter bounds (authorized entries : gt, lt, lte, gte).
$name string Query name.
$boost integer Query boost.
    public function __construct($field, array $bounds = [], $name = null, $boost = QueryInterface::DEFAULT_BOOST_VALUE)
    {
        $this->name = $name;
        $this->boost = $boost;
        $this->field = $field;
        $this->bounds = $bounds;
    }