Skip to content

v0.10.1-multi-index-search.0

Pre-release
Pre-release

Choose a tag to compare

⚠️ Breaking change

  • Facets behavior changed to disjunctive facet search see #884 added in #888

🚀 Enchancement

  • The Index widget 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:

Screenshot 2022-12-20 at 15 41 27

Thanks again to @bidoubiwa! 🎉