Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow each language to go into its own index #934

Open
davidwebster48 opened this issue Jun 27, 2024 · 1 comment
Open

Allow each language to go into its own index #934

davidwebster48 opened this issue Jun 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@davidwebster48
Copy link

My content is available in many languages, using Strapi's i18n plugin.

According to the Meilisearch docs, it is advised to "split your dataset—one language per index".

However, I don't think this is possible using the Meilisearch Strapi plugin. According to this comment it wasn't possible last year, and I can't see anything in the docs about how to do this.

Here is my suggestion for how this could be configured...

// config/plugins.js

module.exports = () => ({
  //...
  meilisearch: {
    config: {
      restaurant: {
        indexName: "my_restaurants",
        oneIndexPerLocale: true,
      }
    }
  }
})

This would automatically create one index per locale, and append the locale code to the index name, so you'd get indexes like my_restaurants-en, my_restaurants-es, my_restaurants-pl, etc.

@davidwebster48 davidwebster48 changed the title Allow each langauge to go into its own index Allow each language to go into its own index Jun 28, 2024
@curquiza curquiza added the enhancement New feature or request label Jul 1, 2024
@BenCherif
Copy link

We have been waiting for this feature for a long time. We hope the team will implement it as soon as possible. Thanks @davidwebster48 for mentioning this enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants