Open
Description
Currently, quarto includes crumbs in the algolia search.json as an array. However, afaik algolia cannot filter by crumb level (e.g. filter on first crumb).
From this algolia issue, it looks like algolia expects an object to represent hierarachical structure:
- current:
crumbs: ["a", "b", "c"]
- suggested:
crumbs: {"lvl0": "a", "lvl1": "b", "lvl2": "c"}}
I'm happy to explore more what the hierarchical structure could give users. But I suspect it might make it easier to build out facets / filters based on crumbs. I wanted to raise early, though -- to get any quick impressions on this algolia approach. (I personally don't love things like "lvl0"
, but am loving algolia facetting!)
See the algolia docs on filtering