Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Spellchecker::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Cache $cacheHelper )
$clientFactory Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface ES Client Factory.
$cacheHelper Smile\ElasticsuiteCore\Helper\Cache ES cache helper.
    public function __construct(ClientFactoryInterface $clientFactory, CacheHelper $cacheHelper)
    {
        $this->client = $clientFactory->createClient();
        $this->cacheHelper = $cacheHelper;
    }