Skip to content

Commit 7d2e2aa

Browse files
committed
MERGE: Merge branch '4.0' into master
# Conflicts: # Classes/Driver/Version1/Query/FilteredQuery.php # Classes/Driver/Version5/IndexerDriver.php # Classes/Driver/Version5/Query/FilteredQuery.php # Classes/Eel/ElasticSearchQueryBuilder.php # README.md
2 parents a9b67d0 + c7a9166 commit 7d2e2aa

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
@@ -842,7 +842,7 @@ protected function convertHitsToNodes(array $hits): array
842842
* we might be able to use https://github.com/elasticsearch/elasticsearch/issues/3300 as soon as it is merged.
843843
*/
844844
foreach ($hits as $hit) {
845-
$nodePath = $hit[isset($hit['fields']) ? 'fields' : '_source']['__path'];
845+
$nodePath = $hit[isset($hit['fields']['__path']) ? 'fields' : '_source']['__path'];
846846
if (is_array($nodePath)) {
847847
$nodePath = current($nodePath);
848848
}

0 commit comments

Comments
 (0)