Closed azngeek closed 1 year ago
Hey @azngeek, can I see your Meilisearch plugin configuration in Strapi?
Sure,
it is this one
module.exports = () => ({
//...
meilisearch: {
config: {
profile: {
settings: {
filterableAttributes: ['confirmed', 'gender'], // add categories to filterable attributes.
}
}
}
}
})
I tried it locally and it seems to work for me. There are two possible reasons for me you might have this bug:
profiles
and not profile
?Can you check and uncheck profile
in the Meilisearch dashboard page?
Thanks for the feedback. I got the error. It was because i used a typescript based setup instead of vanilla js. The name of the plugin file must be plugin.ts
instead of plugin.js
.
Perfect! Closing this as it seems to be solved :)
Description I have setup Meilisearch using the instasearch plugin using the following configurations:
instantsearch.widgets.refinementList({ container: "#enabled-list", attribute: "gender" }),
and this is the configuration in strapimodule.exports = () => ({ //... meilisearch: { config: { profile: { settings: { filterableAttributes: ['confirmed', 'gender'] } } } } })
Expected behavior
I expect that the attributes 'confirmed' and 'gender' are filterable.
Current behavior
Meilisearch tells me that the attributes are not filterable.
Screenshots or Logs If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):