Documentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
This widget is and is subject to change in minor versions.
Signature
Import
JavaScript
The
feeds widget isn’t available from the UMD build.
Use InstantSearch.js with a packaging system.About this widget
Use thefeeds widget to display multiple independent result sets from a multifeed composition.
For each feed in the composition, the widget creates a scoped container and calls the widgets function to add InstantSearch widgets for that feed.
Requires a composition-based InstantSearch instance (the compositionID option must be set on instantsearch).
Examples
JavaScript
Options
The CSS selector or
HTMLElement to insert the widget into.A function that returns the widgets to use for each feed.
Called once for each
feedID when a new feed appears in the composition response.
It receives:container. AnHTMLElementscoped to this feed. Pass it to thecontaineroption of your widget.feedID. The unique identifier of the feed, as defined in the composition configuration.
null or undefined to render the feed container without any widgets.JavaScript
Whether each feed runs an isolated search with its own search parameters. Currently only
false is supported, meaning all feeds share the same global search state. The option is required to make the choice explicit; future releases may add support for true.JavaScript
A function to transform, reorder, or filter the feed IDs before rendering. Receives the array of feed IDs from the composition response and must return an array of feed IDs (strings).
JavaScript