__construct() публичный Метод

public __construct ( string $queryText, string $field, string $minimumShouldMatch = self::DEFAULT_MINIMUM_SHOULD_MATCH, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE )
$queryText string Matched text.
$field string Query field.
$minimumShouldMatch string Minimum should match for the match query.
$name string Query name.
$boost integer Query boost.
Пример #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;
 }