Multi index search with Strapi and Meilisearch
See original GitHub issueDescription
Hi 👋🏼 I have been using Strapi for some time now and am currently working on integrating strapi-plugin-meilisearch
to implement Search in the website.
While I am able to get it working with React Instantsearch and Strapi, I see that every collection becomes its own index so to do a search across multiple collections if I want to implement a global search, I have to implement a multi-index search and I did follow these repos for the same with multiple <Index>
But still I see instantsearch searching only a single index as specified within <InstantSearch> (in this case stores
) - any ideas why? I do see that search is working when I try calling the API directly via curl
Using “react-instantsearch-dom”: “^6.11.1”, “@meilisearch/instant-meilisearch”: “^0.5.0”,
And this is how the snippet looks like… The syntax seems to be correct but not sure why multi-index search doesn’t work…
Expected behavior Multi index search works with React instantsearch
Current behavior No hit fired during search
Environment (please complete the following information):
- OS: Ubuntu 20.04 “react-instantsearch-dom”: “^6.11.1”, “@meilisearch/instant-meilisearch”: “^0.5.0”,
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
PR #265 can also allow composite index
@tvvignesh, a good friend and developer @mattiebelt just created the following: https://github.com/MattieBelt/strapi-plugin-meilisearch
Thus far, I haven’t had much time to play but it’s working well for me at this stage!
The above is searching across 3 Strapi collections: