Author: Aurelien FOUCRET (aurelien.foucret@smile.fr)
Inheritance: implements Smile\ElasticsuiteCore\Search\Request\QueryInterface
Example #1
0
 /**
  * Constructor.
  *
  * @param string  $queryText          Matched text.
  * @param string  $field              Query field.
  * @param float   $cutoffFrequency    Cutoff frequency.
  * @param string  $minimumShouldMatch Minimum should match for the match query.
  * @param string  $name               Query name.
  * @param integer $boost              Query boost.
  */
 public function __construct($queryText, $field, $cutoffFrequency = self::DEFAULT_CUTOFF_FREQUENCY, $minimumShouldMatch = self::DEFAULT_MINIMUM_SHOULD_MATCH, $name = null, $boost = QueryInterface::DEFAULT_BOOST_VALUE)
 {
     parent::__construct($queryText, $field, $minimumShouldMatch, $name, $boost);
     $this->cutoffFrequency = $cutoffFrequency;
 }