PHP Class Elastica\Query\Regexp

Inheritance: extends AbstractQuery
Mostra file Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
__construct ( string $key = '', string $value = null, float $boost = 1 ) Construct regexp query.
setValue ( string $key, string $value, float $boost = 1 ) Sets the query expression for a key with its boost value.

Method Details

__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)

setValue() public method

Sets the query expression for a key with its boost value.
public setValue ( string $key, string $value, float $boost = 1 )
$key string
$value string
$boost float