Skip to main content
Facets of multiple levels under a parent facet are known as hierarchical facets. Hierarchical facets allow faster navigation through facet submenus and breadcrumbs when navigating through the available options. Facets with children can be indicated by an arrow to indicate they have children that become visible when the arrow is selected. Selecting a child facet after expanding the facet menu allows the user to bypass the options between the top page and their choice. Predictive Merchandiser Hierarchy View Hierarchical facets are split according to the delimiter set in the Apply Rules query pipeline stage. For more information, see Use Hierarchical Facets.

Fusion

To configure hierarchical fields settings:
  1. Access the application and click Relevance > Rules > Templates.
  2. Click the three vertical dots to the right of the application name to display the Hierarchical fields settings section.
  3. Complete one of the following:
    • To add a new field, click + Add. Enter values in the Field and Delimiter fields and click Apply.
    Any symbol can be used as a delimiter.
    • To edit an existing field, click Field and select the value to edit. Enter the appropriate value in the Delimiter field and click Apply.
    • To delete a field setting, select the value in Field, click X, and then click Apply.
    • To cancel any changes before you apply them, click Cancel.

Index hierarchical values

Index each level of the hierarchy as a separate value in a multivalued field. Start each value with its depth, where 0 is the top level, followed by the full path to that level. Use the same delimiter that you set in the hierarchical fields settings. For example, with / as the delimiter:

Hierarchical facet responses

Fusion returns hierarchical facets as standard field facets. The response contains one entry for each value with its document count:
Predictive Merchandiser builds the tree from these values. It uses the depth and the path to find each value’s parent, and it displays only the last part of the path: Hierarchical facet tree built from the example response
Predictive Merchandiser displays a facet as a tree only if every value in the facet contains the delimiter. If values don’t start with a depth, Predictive Merchandiser displays only the last part of each path, with no parent levels.