Files
medusa-store/packages/medusa-plugin-meilisearch
Oliver Windall Juhl 7e17e0ddc2 feat(medusa-plugin-meilisearch): Update + improve Meilisearch plugin (#3377)
* feat(medusa-plugin-meilisearch): Upgrade meilisearch deps + migrate plugin to TS

* fix version

* Remove transaction base service from search service

* Create .changeset/strange-mails-pump.md

* Backward compatibility

* Address PR feedback

* Fix folder structure

* Update readme

* Move types

* fix deps

* Change version in changeset

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
2023-03-16 16:15:29 +01:00
..
2023-02-14 17:30:40 +01:00

medusa-plugin-meilisearch

Meilisearch Plugin for Medusa to search for products.

Learn more about how you can use this plugin in the documentaion.

Options

{
  config: {
    host: "[your meilisearch host]",
  },
  settings: {
    "[indexName]": "[meilisearch settings passed to meilisearch's `updateSettings()` method]"
    // example
    products: {
      indexSettings: {
        searchableAttributes: ["title", "description", "variant_sku"],
        displayedAttributes: ["title", "description", "variant_sku", "thumbnail", "handle"],
      },
      primaryKey: "some_id"
      transformer: (product: Product) => ({ id: product.id })
    }
  }
}