atomic-automatic-facet-generator

This is for:

Developer
In this article

The atomic-automatic-facet-generator is a component that renders the facets from the automatic facets feature.

Unlike traditional facets that need to be explicitly defined and requested in the query, automatic facets are dynamically generated by the index in response to the search query.

It dynamically creates multiple atomic-automatic-facet components based on the desiredCount prop.

To read more about the automatic facet generator feature, see: https://docs.coveo.com/en/n9sd0159/

Properties

Property Attribute Description Type Default

desiredCount (required)

desired-count

The desired count of automatic facets.

Minimum: 1 Maximum: 10

number

numberOfValues

number-of-values

The desired number of automatically generated facet values.

Minimum: 1

number

8

Methods

updateCollapseFacetsDependingOnFacetsVisibility

Signature: updateCollapseFacetsDependingOnFacetsVisibility(collapseAfter: number, numberOfVisibleFacets: number) => Promise<void>

Returns: Promise<void>