PHP Class Smile\ElasticsuiteCore\Search\Request\Query\Common

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Match
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( string $queryText, string $field, float $cutoffFrequency = self::DEFAULT_CUTOFF_FREQUENCY, string $minimumShouldMatch = self::DEFAULT_MINIMUM_SHOULD_MATCH, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE ) Constructor.
getCutoffFrequency ( ) : float Query cutoff frequency.
getType ( ) {@inheritDoc}

Method Details

__construct() public method

Constructor.
public __construct ( string $queryText, string $field, float $cutoffFrequency = self::DEFAULT_CUTOFF_FREQUENCY, string $minimumShouldMatch = self::DEFAULT_MINIMUM_SHOULD_MATCH, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE )
$queryText string Matched text.
$field string Query field.
$cutoffFrequency float Cutoff frequency.
$minimumShouldMatch string Minimum should match for the match query.
$name string Query name.
$boost integer Query boost.

getCutoffFrequency() public method

Query cutoff frequency.
public getCutoffFrequency ( ) : float
return float

getType() public method

{@inheritDoc}
public getType ( )