setMaxValuesPerFacet method

AlgoliaQuery setMaxValuesPerFacet(
  1. int value
)

MaxValuesPerFacet

Maximum number of facet values to return for each facet during a regular search.

If you want to change the number of retrieved facet hits during a search for facet values, see maxFacetHits.

Usage notes:

  • For performance reasons, the API enforces a hard limit of 1000 on maxValuesPerFacet. Any value above that limit will be interpreted as 1000.

Source: Learn more

Implementation

AlgoliaQuery setMaxValuesPerFacet(int value) {
  assert(!_parameters.containsKey('maxValuesPerFacet'));
  return _copyWithParameters(<String, dynamic>{'maxValuesPerFacet': value});
}