- Type:
integer - Default:
10 - Max:
1,000 - Scope:
settings,search
maxValuesPerFacet parameter limits how many facet values are returned per facet in the search response.
This helps you focus the user experience on the most relevant facet values,
especially in cases where a facet (like brand, author, or genre) has many possible values.
Don’t confuse
maxValuesPerFacet with maxFacetHits.
maxFacetHits sets the maximum number of returned results when searching for facet values.Usage
The maximum value formaxValuesPerFacet is 1,000.
You can set it higher but the engine will interpret it as 1,000.
Examples
Set the default number of facet values to retrieve
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Set the maximum number of facet values for the current query
Current API clients
Current API clients
This search setting will override the default
maxValuesPerFacet setting for the current search.Legacy API clients
Legacy API clients
This search setting will override the default
maxValuesPerFacet setting for the current search.