PHP Class Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Adapter

Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Magento\Framework\Search\AdapterInterface
Mostra file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponseFactory $responseFactory, Mapper $requestMapper, Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Psr\Log\LoggerInterface $logger ) Constructor.
query ( Magento\Framework\Search\RequestInterface $request )

Private Methods

Method Description
doSearch ( Magento\Framework\Search\RequestInterface $request ) : array Execute the search request with ES.

Method Details

__construct() public method

Constructor.
public __construct ( Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponseFactory $responseFactory, Mapper $requestMapper, Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Psr\Log\LoggerInterface $logger )
$responseFactory Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponseFactory Search response factory.
$requestMapper Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Mapper Search request mapper.
$clientFactory Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface ES Client Factory.
$logger Psr\Log\LoggerInterface Logger.

query() public method

public query ( Magento\Framework\Search\RequestInterface $request )
$request Magento\Framework\Search\RequestInterface