This is the React InstantSearch v7 documentation.
If you’re upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation applies—just check for necessary changes.
To continue using v6, you can find the archived documentation.
Signature
Import
JavaScript
See this widget in action
Preview this widget and its behavior.
About this widget
Index is the provider component for an Algolia index.
It’s useful when building interfaces that target multiple indices such as federated searches.
The position of Index in the widget tree affects which search parameters apply.
Widgets that create search parameters forward them to their children Index widgets.
Examples
JavaScript
Props
string
An identifier for the
Index widget.Providing an indexId lets different <Index widgets target the same Algolia index.
It’s helpful for routing.
It lets you find the refinements that match an Index widget.JavaScript
boolean
default:false
By default, an
Index component is included in the main InstantSearch request.
When isolated is true, the component performs its own search requests instead.When isolated is true, the index:- Searches separately instead of being included in the main search request.
- Isn’t included in the URL or UI state.
- Isn’t included in server-side rendering.
indexName when isolated is true.
EXPERIMENTAL_isolated is a deprecated alias.
Use isolated instead.JavaScript