Skip to main content
Recommend-based groups let you populate a Smart Group with items from an Algolia Recommend model, such as trending items for a category page or collection. You define which model to query and Algolia injects its top recommendations at the position you specify in your .

Before you begin

Supported Recommend models

Recommend-based groups support only the Trending items model. Frequently bought together, Related items, Related content, and Looking similar aren’t supported.

Configure a Recommend-based group

Configure Recommend-based groups with the Update and insert Composition API endpoint. In the injectedItems array, each entry uses a source.recommend object to reference a Recommend model:
JSON

Use Recommend as the source for main feed results

You can also use a Recommend model as the source for the main organic results, not only for an injected group. Set injection.main.source.recommend instead of injection.main.source.search:
JSON
The Recommend source accepts the same fields as an injected group. Use this pattern when you want the full results page to come from Recommend, for example, on a “Trending now” page.

Behavior details

Recommend-based groups behave like search-based groups for filtering, ranking, and deduplication:

See also

Last modified on July 15, 2026