Smile\ElasticsuiteCore\Search\Spellchecker\Request::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $index, string $type, string $queryText, float $cutoffFrequency )
$index string Spellcheck request index name.
$type string Spellcheck request document type.
$queryText string Spellcheck fulltext query.
$cutoffFrequency float Spellcheck cutoff frequency (used to detect stopwords).
    public function __construct($index, $type, $queryText, $cutoffFrequency)
    {
        $this->index = $index;
        $this->type = $type;
        $this->queryText = $queryText;
        $this->cufoffFrequency = $cutoffFrequency;
    }