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 regular facets, which need to be explicitly defined and requested in the query, automatic facets are dynamically generated by the index in response to the search query.

Note: This component renders one or more automatic facets based on the desiredCount property.

To learn more about the automatic facet generator feature, see: About the Facet Generator.

Properties

Property Attribute Description Type Default

desiredCount

desired-count

The desired count of automatic facets.

Minimum: 1 Maximum: 10

number

5

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>