v0.10.1-multi-index-search.0
Pre-release
Pre-release
⚠️ Breaking change
🚀 Enchancement
- The
Indexwidget is now compatible and thus multi-index search is possible #888
The beta is published on npm, you can try it out.
Usage
download:
npm i @meilisearch/[email protected]Usage example using React and the Index widget
<InstantSearch indexName="movies" searchClient={searchClient}>
<SearchBox />
<h2>Movies</h2>
<Index indexName="movies">
<h2 style={{ margin: 0 }}>Genres</h2>
<RefinementList attribute="genres" operator="and" />
<Hits hitComponent={Hit} />
<Pagination />
</Index>
<h2>Games</h2>
<Index indexName="games">
<h2 style={{ margin: 0 }}>Genres</h2>
<RefinementList attribute="genres" />
<InfiniteHits hitComponent={Hit} />
</Index>
</InstantSearch>Example with a very small dataset:
Thanks again to @bidoubiwa! 🎉
