46 private $queryContainerFactory;
60 QueryContainerFactory $queryContainerFactory =
null 66 $this->queryContainerFactory = $queryContainerFactory
76 $client = $this->connectionManager->getConnection();
81 $rawResponse = $client->query(
$query);
83 $rawDocuments = isset($rawResponse[
'hits'][
'hits']) ? $rawResponse[
'hits'][
'hits'] : [];
85 $queryResponse = $this->responseFactory->create(
87 'documents' => $rawDocuments,
91 return $queryResponse;
__construct(ConnectionManager $connectionManager, Mapper $mapper, ResponseFactory $responseFactory, AggregationBuilder $aggregationBuilder, QueryContainerFactory $queryContainerFactory=null)
query(RequestInterface $request)