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