We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ab7279 commit c9756c8Copy full SHA for c9756c8
1 file changed
Classes/Eel/ElasticSearchQueryBuilder.php
@@ -733,7 +733,7 @@ protected function convertHitsToNodes(array $hits)
733
* we might be able to use https://github.com/elasticsearch/elasticsearch/issues/3300 as soon as it is merged.
734
*/
735
foreach ($hits['hits'] as $hit) {
736
- $nodePath = $hit[isset($hit['fields']) ? 'fields' : '_source']['__path'];
+ $nodePath = $hit[isset($hit['fields']['__path']) ? 'fields' : '_source']['__path'];
737
if (is_array($nodePath)) {
738
$nodePath = current($nodePath);
739
}
0 commit comments