Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface::createClient PHP Method

createClient() public method

Create an ES client.
public createClient ( ) : Elasticsearch\Client
return Elasticsearch\Client
    public function createClient();

Usage Example

Example #1
0
 /**
  * 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;
 }
All Usage Examples Of Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface::createClient
ClientFactoryInterface