Please note that this Support article contains frontend customizations via modifying the legacy Algolia template files, which are deprecated and unsupported by the Algolia Support Team.
For more information, please review this Support article - "Why is modifying Algolia template files for customizations not supported?"
We do not provide such a capability out of the box, but you could indeed build it by indexing additional named tags or metafields.
They could be structured like this:
{
// ... Other attributes
"meta": {
"hierarchical_collection": {
"lvl0": "clothing",
"lvl1": "clothing > shirt" }
}
}
Once the metafields are indexed to Algolia, you will be able to customize your front-end to use these fields as breadcrumbs or as hierarchical menus for navigation. We have InstantSearch widgets for both of these features, which you can see linked above.
We have also written this guide on how to customize your InstantSearch results page and this guide on how to import a non bundled-widget. In particular, you'll need to edit assets/algolia_instant_search.js.liquid to include these widgets.