Creating a custom attribute for contextual faceting

I’m using Algolia on a Docusaurus based website. I have configured my Docusaurus configuration to allow contextual search, which makes sure that the results show the relevant version and language. However, I would like to extend the contextual search to include an additional attribute. For example:

If I have a website that has the following top categories

  • Windows
  • Android
  • iOS

I would want to show the guides that are relevant to the user’s current OS selection before showing the other guides. I updated the crawler to extract the root category for each of my documents and added it to the facet filters. I see that each index item has the correct attribute but but the change didn’t seem to impact the search results. Is there a step that I’m missing?