#problems with installing MeiliSearch
36 messages · Page 1 of 1 (latest)
Your meilisearch is not running
@thorny karma
this http://127.0.0.1:7700/ or from melisearch the host ?
@thorny karma
Stop tagging!
sorry
Use your meilisearch instance url
here i open it
its says
Expected, start medusa
Stop tagging! Specially meaningless comments
@vernal smelt You may need to include "transformer" property in your search config:
primaryKey: 'id', transformer: (product) => ({ id: product.id, title: product.title, // other attributes... }),
For your information not selfhosted meilisearch might be more expensive than Algolia when you're just starting.
@vernal smelt you need to configure medusa to include the meilisearch information and restart medusa to initiate the caching
it works now
resolve: `medusa-plugin-meilisearch`,
options: {
// other options...
config: {
host: process.env.MEILISEARCH_HOST,
apiKey: process.env.MEILISEARCH_API_KEY,
},
settings: {
products: {
indexSettings: {
searchableAttributes: [
"title",
"description",
"variant_sku",
],
displayedAttributes: [
"id",
"title",
"description",
"variant_sku",
"thumbnail",
"handle",
],
},
primaryKey: 'id',
transformer: (product) => ({
id: product.id,
title: product.title,
// other attributes...
})
},
},
},
},
];
Mark this solved