medusa: Backend return `addDocuments must be overridden by a child class` when use medusa-plugin-meilisearch@2.0.6
Bug report
Describe the bug
When I was using the medusajs-plugin-meilisearch plugin in medusajs which I followed from the following tutorial https://docs.medusajs.com/plugins/search/meilisearch, I noticed that the products I added or updated were not found on my meilisearch server.
When I open the medusa backend, it says “Processing product. created which has 0 subscribers”. And when I do the same thing described from https://github.com/medusajs/medusa/issues/3964#issuecomment-1529700523, I run insert into staged_job (id, event_name, data) values ('some_id', ' SEARCH_INDEX_EVENT', '{}')
generates “info: Processing SEARCH_INDEX_EVENT which has 1 subscriber
warn: This is an empty method: addDocuments must be overridden by a child class”
System information
Medusa version (including plugins):
"dependencies": { "@medusajs/admin": "^2.0.2", "@medusajs/cache-inmemory": "^1.8.2", "@medusajs/cache-redis": "1.8.0", "@medusajs/event-bus-local": "^1.8.2", "@medusajs/event-bus-redis": "1.8.0", "@medusajs/medusa": "1.8.1", "@medusajs/medusa-cli": "^1.3.10", "@medusajs/utils": "^1.8.2", "aws-sdk": "^2.1370.0", "axios": "^1.4.0", "cors": "^2.8.5", "joi": "^17.8.3", "medusa-core-utils": "^1.1.39", "medusa-file-minio": "^1.1.5", "medusa-file-s3": "^1.1.11", "medusa-file-spaces": "^1.3.6", "medusa-fulfillment-manual": "^1.1.31", "medusa-interfaces": "^1.3.7", "medusa-payment-manual": "^1.0.16", "medusa-payment-stripe": "^1.1.45", "medusa-plugin-meilisearch": "^2.0.6", "multer": "^1.4.5-lts.1", "multer-s3": "^3.0.1", "typeorm": "0.3.11" },
Node.js version: v16.15.0
Database: postgre
Operating system: Windows 11
Browser (if relevant):
Steps to reproduce the behavior
- Create some products in medusa admin
- Try to find that’s product in your meilisearch server
- Or you can find with postman
Expected behavior
Every time there is an addition or change to a product in the Medusa admin, the product should also be sent to the meilisearch server which was set up earlier.
Screenshots
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
@omarghader – can I get you to ensure you’ve installed the latest version of all Medusa packages in your project?
We are working on improving our versioning, so you don’t have to go through this much hassle to make it work.