diff --git a/src/Plugin/search_api/processor/AddHierarchy.php b/src/Plugin/search_api/processor/AddHierarchy.php index 220c5c8..dccd6a6 100644 --- a/src/Plugin/search_api/processor/AddHierarchy.php +++ b/src/Plugin/search_api/processor/AddHierarchy.php @@ -167,7 +167,7 @@ class AddHierarchy extends ProcessorPluginBase implements PluginFormInterface { // Special handling if this is a taxonomy field. if ($taxonomy_hierarchy) { // Add each parent. - foreach ($this->entityTypeManager->getStorage('taxonomy_term')->loadParents($id) as $parent) { + foreach ($this->entityTypeManager->getStorage('taxonomy_term')->loadAllParents($id) as $parent) { $values[] = $parent->id(); }