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

__construct() public method

Constructor.
public __construct ( string $name, string $indexName, string $type, Magento\Framework\Search\Request\QueryInterface $query, Magento\Framework\Search\Request\QueryInterface $filter = null, array $sortOrders = null, integer | null $from = null, integer | null $size = null, array $dimensions = [], array $buckets = [], string $spellingType = null )
$name string Search request name.
$indexName string Index name.
$type string Searched document type.
$query Magento\Framework\Search\Request\QueryInterface Search query.
$filter Magento\Framework\Search\Request\QueryInterface Search filter.
$sortOrders array Sort orders specification.
$from integer | null Pagination from clause.
$size integer | null Pagination page size clause.
$dimensions array Searched store.
$buckets array Search request aggregations definition.
$spellingType string For fulltext query : the type of spellchecked applied.
    public function __construct($name, $indexName, $type, QueryInterface $query, QueryInterface $filter = null, array $sortOrders = null, $from = null, $size = null, array $dimensions = [], array $buckets = [], $spellingType = null)
    {
        parent::__construct($name, $indexName, $query, $from, $size, $dimensions, $buckets);
        $this->type = $type;
        $this->filter = $filter;
        $this->sortOrders = $sortOrders;
        if ($spellingType !== null) {
            $this->spellingType = $spellingType;
        }
    }