i am trying to install algolia search in medusajs by using the documentation on this link https://docs.medusajs.com/plugins/search/algolia
i installed the plugin by the follwoing command
npm install medusa-plugin-algolia
entered the api keys in .env
below is the config , i am using (as given in the documentation )
resolve: `medusa-plugin-algolia`,
options: {
applicationId: process.env.ALGOLIA_APP_ID,
adminApiKey: process.env.ALGOLIA_ADMIN_API_KEY,
settings: {
products: {
indexSettings: {
searchableAttributes: ["title", "description"],
attributesToRetrieve: [
"id",
"title",
"description",
"handle",
"thumbnail",
"variants",
"variant_sku",
"options",
"collection_title",
"collection_handle",
"images",
],
},
},
},
},
},
];
but i am getting the below error in the terminal on running - npx medusa develop
info: Processing SEARCH_INDEX_EVENT which has 1 subscribers error: An error occurred while processing SEARCH_INDEX_EVENT: [object Object]
Even on algolia, i am not getting the records, as i should get the index is getting created "products", but the records are not being uploaded to algolia by the api algolia no records image
Also on postman while verifying the plugin, i am not getting the desired result, it is empty
kindly let me what config should be used in the plugin, so that the api is able to upload all the records to algolia
It appears your indexer is not able to parse the object properly.