Elastica\Query\Regexp::__construct PHP Method

__construct() public method

Construct regexp query.
public __construct ( string $key = '', string $value = null, float $boost = 1 )
$key string OPTIONAL Regexp key
$value string OPTIONAL Regexp value
$boost float OPTIONAL Boost value (default = 1)
    public function __construct($key = '', $value = null, $boost = 1.0)
    {
        if (!empty($key)) {
            $this->setValue($key, $value, $boost);
        }
    }