Getting facets with id as well as title

Created on 29 September 2020, over 3 years ago
Updated 14 April 2024, 2 months ago

Hi,

I'm trying to create an JSON endpoint where I can get taxonomy title and id in the facets for aggregated field. At the moment I can either get id or title using "Transform entity ID in aggregated field to label". Is there a way that I can get both.

Here is a current structure I get

"facets": [
    [
      {
        "aggregated_field_taxonomy": [
          {
            "url": .....,
            "values": {
              "value": "154"
            }
          },
        ]
      }
    ]
  ]

And this is what I'm looking to achieve

"facets": [
    [
      {
        "aggregated_field_taxonomy": [
          {
            "url": ....,
            "values": {
              "value": "154",
              "title": "taxonomy title 1"
            }
          },
        ]
      }
    ]
  ]
✨ Feature request
Status

Needs work

Version

2.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom drs2034

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.

Production build 0.69.0 2024