Guides / Building Search UI / UI & UX patterns

Injecting content between hits

Angular InstantSearch isn’t compatible with Angular’s Ivy view engine. We’re investigating how best to support this. For more information and to vote for Algolia’s support of Angular 16 and beyond, see the GitHub issue Algolia Support for Angular InstantSearch

For now, content injection is only available with React InstantSearch v6. You can vote on this open issue to express interest for content injection in Angular InstantSearch, and help prioritize the creation of this guide.

Content injection consists of inserting data between search results. This pattern can be helpful in a variety of use cases:

  • Displaying promotional or editorial content based on the search parameters, like the query or active refinements
  • Inserting promoted brand banners between hits
  • Showing customized suggestions based on the user profile

Screenshot showing editorial content injected between regular hits

Did you find this page helpful?