/**
  * Returns the ElasticSearch "hit" (e.g. the raw content being transferred back from ElasticSearch)
  * for the given node.
  *
  * Can be used for example to access highlighting information.
  *
  * @param NodeInterface $node
  * @return array the ElasticSearch hit, or NULL if it does not exist.
  * @api
  */
 public function searchHitForNode(NodeInterface $node)
 {
     return $this->elasticSearchQuery->getQueryBuilder()->getFullElasticSearchHitForNode($node);
 }
 /**
  * Get a query result object for lazy execution of the query
  *
  * @return \Traversable<\TYPO3\Flow\Persistence\QueryResultInterface>
  * @api
  */
 public function execute()
 {
     $elasticSearchQuery = new ElasticSearchQuery($this);
     $result = $elasticSearchQuery->execute(true);
     return $result;
 }
 /**
  * @return array
  */
 public function getAggregations()
 {
     $this->initialize();
     return $this->elasticSearchQuery->getQueryBuilder()->getElasticSearchAggregationsFromLastRequest();
 }