
Facets let customers narrow down search results to items with common features, such as color or brand, and show how many items match each value. Unlike [filterable attributes](/docs/ai-hub/ai-search/define-attributes#filterable-attributes), facets do not simply include or exclude items — they expose attribute distributions alongside the results.

Automatic Facets uses AI to select the most relevant facets for each search query based on product data and search results. Enabling this feature reduces filtering noise and improves the filtering experience for end users without requiring manual facet selection.

Automatic Facets does not replace the [Facetable attributes](/docs/ai-hub/ai-search/define-attributes#facetable-attributes) configuration. It selects which of those pre-configured attributes to surface for each query. You must configure facetable attributes first, the algorithm draws exclusively from that pool.

## Prerequisites
---

- An [AI Search index](/docs/ai-hub/ai-search/create-index) must already exist in your workspace.
- The facetable attributes you want the algorithm to draw from must be configured in the
  **Facetable attributes** setting of the same index. For applicable limits, see [AI Search limits](/docs/ai-hub/ai-search/introduction-to-ai-search#limits).


  <div class="admonition admonition-warning"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  The sum of distinct attribute values for filterable and facetable attributes combined cannot exceed the index limit. Attributes with many distinct values reduce the capacity available for other attributes. For details, see [Facetable attributes](/docs/ai-hub/ai-search/define-attributes#facetable-attributes).

  </div></div></div>


## Configuring Automatic Facets
---

1. Go to <img src="/api/docs/image/d882340d1fe3869de92387b62274f31f6b36a669/icons/ai-hub-icon.svg" alt="AI Hub icon" class="icon"> **AI Hub > AI Search > Indexes**.
2. Click the name of the index you want to configure.

    **Result**: The index detail page opens.

3. Click the **Settings** tab.
4. Scroll to the **Automatic Facets** section and click **Define**.

    **Result**: The Automatic Facets configuration panel expands.  
    <figure><img src="/api/docs/image/d882340d1fe3869de92387b62274f31f6b36a669/docs/ai-hub/_gfx/automatic-facets-disabled.png" class="medium" alt="Disabled Automatic Facets"><figcaption>Disabled Automatic Facets</figcaption></figure>

5. Toggle **Enabled** to turn the feature on or off.  
    **Result**: 
    <figure><img src="/api/docs/image/d882340d1fe3869de92387b62274f31f6b36a669/docs/ai-hub/_gfx/automatic-facets-enabled.png" class="medium" alt="Enabled Automatic Facets"><figcaption>Enabled Automatic Facets</figcaption></figure>
6. Under **Minimum coverage threshold**, drag the **Coverage threshold** slider to set the minimum percentage of results that must include an attribute before the facet is shown. The range is `1%` to `100%`.
7. In the **Maximum number of facets** field, enter the maximum number of facets to display in the results. The maximum allowed value is `10`.
8. Click **Apply**.

    **Result**: The configuration is saved and the index applies the updated Automatic Facets settings.


   <div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   To verify which facets the algorithm returns for a given query, use the search preview. See [Previewing AI Search results](/docs/ai-hub/ai-search/previewing-search-engine-results).

   </div></div></div>


## Automatic Facets settings explanation
---

### Enabled

Activates or deactivates Automatic Facets for the index. When disabled, facets are controlled
solely by the **Facetable attributes** configuration and any manual rules.

### Minimum Coverage Threshold

Defines the minimum percentage of search results that must contain a given attribute before that attribute is shown as a facet. For example, a value of `20%` means a facet appears only if at least 20% of the results include that attribute. The slider range is `1%` to `100%`.

Use a higher threshold to reduce the number of facets shown for broad queries. Use a lower threshold to surface more specific attributes for narrower result sets.

### Maximum Number of Facets

Limits the total number of facets returned in the search results. The maximum allowed value is `10`. 
### Facet Attributes

The Automatic Facets algorithm selects from the attributes configured in the **Facetable attributes** setting of the index. To view or modify the attribute pool, click **Go to Facetable attributes** within the configuration panel, or navigate to the **Facetable attributes** card in the same **Settings** tab.

## Overriding Automatic Facets with rules
---

You can manually control which facets are shown or hidden regardless of the algorithm's selection. Manual rules always take precedence over the Automatic Facets algorithm — a facet forced by a rule will appear even if it does not meet the coverage threshold, and a suppressed facet will not appear even if the algorithm selects it.

To define manual rules, click **Go to rules** in the **Manual facet rules** section of the Automatic Facets panel. This opens the **Rules** tab. For instructions on creating rules, see [Create rules](/docs/ai-hub/ai-search/query-rules).


<div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

Use manual facet rules when you need to guarantee that a specific facet always appears for certain queries, for example, always showing **availability** for any search.

</div></div></div>

