instantsearch: Cannot fetch value from the attributeName which is in hierarchical level

I am having a hierarchical object in json. I am using connectMenu to list out the catogories in a dropdown. When I give attributeName: “taxonomies_hierarchical.category.lvl0” i got response. But When I give attributeName: “taxonomies_hierarchical.category.lvl1”, the result is empty. How can I get the lvl1 values?

"taxonomies_hierarchical": {
        "category": {
          "lvl0": [
            "Manchester"
          ],
          "lvl1": [
            "Manchester > Hopwood House"
          ]
        }
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

Hi @bobylito thanks for your reply. Here is the link for live reproducible, https://codesandbox.io/s/yp07y8vp6z. when I use the menu widget with attributeName : “taxonomies_hierarchical.locations.lvl0”. I can get the values. But when I give attributeName : “taxonomies_hierarchical.locations.lvl1” am getting empty response. At the same time am getting value in refinementList

yes i sent mail to support@algolia.com

I can’t help based on screenshots, can you please send an email to support@algolia.com with the code relevant?

Can you make an example on CodeSandbox please, there’s a template here