/** * 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); }
/** * @return array */ public function getAggregations() { $this->initialize(); return $this->elasticSearchQuery->getQueryBuilder()->getElasticSearchAggregationsFromLastRequest(); }