Skip to main content
Query Categorization is a powerful Algolia feature that can be used out of the box with the Magento extension. You can natively use the categories attribute from the product .
JSON
[
  // ...
  "categories" :{
    level0: [ "Men" ],
    level1: [ "Men /// Tops" ],
    level2: [ "Men /// Tops /// Hoodies & Sweatshirts" ]
  }
  // ...
]
Configure the Query Categorization’s settings with this attribute selecting its hierarchical levels in the Query Categorization > Categories settings section of the configuration within the Algolia dashboard: Screenshot of index classification settings with 'categories.level0', 'level1', and 'level2' selected, and an example hierarchy. For more information about enabling and configuring this feature, see Query Categorization.
Last modified on February 18, 2026