diff --git a/search/plugins/ezsolr/ezsolr.php b/search/plugins/ezsolr/ezsolr.php index c998de72..eeed6cdd 100644 --- a/search/plugins/ezsolr/ezsolr.php +++ b/search/plugins/ezsolr/ezsolr.php @@ -328,7 +328,8 @@ protected function getNodeID( $doc ) { array_unshift( $docVisibilities, $docVisibilities[$mainNodeIdx] ); array_unshift( $docPathStrings, $docPathStrings[$mainNodeIdx] ); - unset( $docVisibilities[$mainNodeIdx], $docPathStrings[$mainNodeIdx] ); + // adding +1 to indexing because of array_unshift + unset( $docVisibilities[$mainNodeIdx + 1], $docPathStrings[$mainNodeIdx + 1] ); } } $locationFilter = isset( $this->postSearchProcessingData['subtree_array'] ) ? $this->postSearchProcessingData['subtree_array'] : array();