Skip to content

Commit c9756c8

Browse files
dimaipdaniellienert
authored andcommitted
BUGFIX: fix logic of getting __path from result
1 parent 6ab7279 commit c9756c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ protected function convertHitsToNodes(array $hits)
733733
* we might be able to use https://github.com/elasticsearch/elasticsearch/issues/3300 as soon as it is merged.
734734
*/
735735
foreach ($hits['hits'] as $hit) {
736-
$nodePath = $hit[isset($hit['fields']) ? 'fields' : '_source']['__path'];
736+
$nodePath = $hit[isset($hit['fields']['__path']) ? 'fields' : '_source']['__path'];
737737
if (is_array($nodePath)) {
738738
$nodePath = current($nodePath);
739739
}

0 commit comments

Comments
 (0)