Transform entity ID to label doesn't apply to child taxonomy terms in hirearchy

Created on 2 September 2022, over 2 years ago
Updated 11 March 2025, 26 days ago

Problem/Motivation

When the Index hierarchy > Term Parents processor is enabled in search API and hierarchy is enabled in facets, the parents display the label but the children stay as taxonomy term IDs.

  • Awesome Department (20)
    • 55267 (5)
    • 55265 (10)
    • 85267 (25)
    • 55269 (3)
  • Cool Department (5)

"Transform entity ID to label" should apply to all taxonomy term parents and children.

Steps to reproduce

  • Have a taxonomy that has parents and children with many levels within its hierarchy, such as an organization and its departments/offices.
  • enable Index hierarchy processor in search api and have "Term Parents" as the hierarchy property to use
  • index content
  • In facet config: Select "use hierarchy" and taxonomy hierarchy as the type. (Note: hierarchy parents, expand hierarchy, and enable parent when child gets disabled has no effect on if children show up as labels or not).
  • expand your facet where it's placed with your search view. To see parents with labels and children with TID numbers.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States laura.gates

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    Yes, that seems logical to first do operations on the tree before transforming it into hierarchy.

Production build 0.71.5 2024