/**
* Constructor.
*
* @param QueryResponseFactory $responseFactory Search response factory.
* @param Request\Mapper $requestMapper Search request mapper.
* @param ClientFactoryInterface $clientFactory ES Client Factory.
* @param LoggerInterface $logger Logger.
*/
public function __construct(QueryResponseFactory $responseFactory, Request\Mapper $requestMapper, ClientFactoryInterface $clientFactory, LoggerInterface $logger)
{
$this->responseFactory = $responseFactory;
$this->logger = $logger;
$this->client = $clientFactory->createClient();
$this->requestMapper = $requestMapper;
}