instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

Content injection between Hits for InstantSearch.js

Open dhayab opened this issue 2 years ago • 15 comments

We recently published a guide on how to inject custom content between hits, for React InstantSearch, and we'd like to gather interest in adapting this guide for InstantSearch.js.

What's Content injection between Hits?

Content injection consists of inserting data between search results. This pattern can be helpful for 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

image

See Live Demo →

How to show your interest?

Simply add a "👍" reaction on this issue, and optionally subscribe to its notifications. We will share updates here.

dhayab avatar Jan 25 '22 17:01 dhayab

Very keen for this to be implemented in the Vue version as well as the React library.

jonathan-bird avatar Feb 24 '22 01:02 jonathan-bird

Also keen to see the React InstantSearch Hooks version.

mlbrgl avatar Jun 14 '22 08:06 mlbrgl

I'd love to see this instantsearch.js please!

JessycaFrederick avatar Jun 26 '22 18:06 JessycaFrederick

Yes please add this for instantsearch.js

unclescooby avatar Sep 12 '22 23:09 unclescooby

+1 from me 👍

simonkoehler avatar Sep 21 '22 17:09 simonkoehler

+1

yannlugus avatar Sep 27 '22 15:09 yannlugus

+1 !

robinsimonklein avatar Oct 20 '22 09:10 robinsimonklein

We need this function on the product category page to show some banner or content between two products.

emregozel avatar Oct 20 '22 11:10 emregozel

While this isn't yet planned, I'm on support today so I have made a demo on content injection in InstantSearch.js, you can see that here: https://github.com/algolia/doc-code-samples/pull/412

Haroenv avatar Oct 20 '22 14:10 Haroenv

really want this feature in instantsearch.js, we currently have tiles injected between search results which i added to my code a couple years ago, and we thought it would be available for the algolia JS version...

davpetersonaz avatar Feb 06 '24 17:02 davpetersonaz