How do I show maximum N results per some attribute value? September 12, 2023 10:23 Updated You can use distinct and attributeForDistinct for this purpose. For example, if each record has an id that is the same, you can use this as the attributeForDistinct, and set distinct to 2 to return 2 of the id value, although there may be more in your record set. Related articles Is Algolia a database? How to trigger a redirect from AutoComplete. Clarifying confusion with facets, facet values, maxFacetHits, and maxValuesPerFacet Does a virtual replica without relevant sort configuration returns the same result as its primary index? Can I customize the Algolia dashboard?