Skip to content

Multi index search with Strapi and Meilisearch #193

@tvvignesh

Description

@tvvignesh

Description
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>

https://github.com/algolia/doc-code-samples/blob/master/React%20InstantSearch/multi-index-hits/src/App.js

https://github.com/algolia/react-instantsearch/tree/7520e893bbec8816f6e283438610ad845616b0b4/examples/multi-index

But still I see instantsearch searching only a single index as specified within (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..

image

image

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions