setMaxFacetHits method

AlgoliaQuery setMaxFacetHits(
  1. int value
)

MaxFacetHits

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

If you want to change the number of retrieved facet values for a regular search, see maxValuesPerFacet.

Usage notes:

  • Does not apply to regular search queries.
  • For performance reasons, the maximum allowed number of returned values is 100. Any value outside the range 1, 100 will be rejected.

Source: Learn more

Implementation

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