2.0.11 • Published 11 months ago

medusa-plugin-meilisearch v2.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

MeiliSearch

Provide powerful indexing and searching features in your commerce application with MeiliSearch.

MeiliSearch Plugin Documentation | Medusa Website | Medusa Repository

Features

  • Flexible configurations for specifying searchable and retrievable attributes.
  • Ready-integration with Medusa's Next.js starter storefront.
  • Utilize MeiliSearch's powerful search functionalities including typo-tolerance, synonyms, filtering, and more.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-plugin-meilisearch

2. Set the following environment variables in .env:

MEILISEARCH_HOST=<YOUR_MEILISEARCH_HOST>
MEILISEARCH_API_KEY=<YOUR_MASTER_KEY>

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: `medusa-plugin-meilisearch`,
    options: {
      config: {
        host: process.env.MEILISEARCH_HOST,
        apiKey: process.env.MEILISEARCH_API_KEY,
      },
      settings: {
        products: {
          indexSettings: {
            searchableAttributes: [
              "title", 
              "description",
              "variant_sku",
            ],
            displayedAttributes: [
              "title", 
              "description", 
              "variant_sku", 
              "thumbnail", 
              "handle",
            ],
          },
          primaryKey: "id",
          transformer: (product) => ({
            id: product.id, 
            // other attributes...
          }),
        },
      },
    },
  },
]

Test the Plugin

1. Run the following command in the directory of the Medusa backend to run the backend:

npm run start

2. Try searching products either using your storefront or using the Store APIs.


Additional Resources

2.0.11

11 months ago

2.0.10

2 years ago

2.0.5

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

2.0.0-rc.2

2 years ago

2.0.0-rc.0

2 years ago

2.0.0-rc.1

2 years ago

1.0.1

2 years ago

0.2.5-test.0

3 years ago

1.0.0

3 years ago

1.0.1-alp.0

3 years ago

1.0.0-alpha.0

3 years ago

0.2.5-next.0

3 years ago

0.2.5-nxt.0

3 years ago

1.0.1-alpha.0

3 years ago

0.2.5

3 years ago

0.2.1-next.99

3 years ago

0.2.1-next.41

3 years ago

1.0.0-next.0

3 years ago

0.2.1-next.44

3 years ago

0.2.1-next.35

3 years ago

0.2.1-nxt.129

3 years ago

0.2.1-next.101

3 years ago

0.2.1-next.100

3 years ago

0.2.1-next.24

3 years ago

0.2.1-next.26

3 years ago

0.2.1-next.27

3 years ago

0.2.1

3 years ago

0.2.1-nxt.130

3 years ago

0.2.3

3 years ago

0.2.1-next.108

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.0.16-next.0

3 years ago

0.2.1-next.14

3 years ago

0.0.15

3 years ago

0.2.0

3 years ago

0.1.2-dev.53

3 years ago

0.0.15-alpha.63

3 years ago

0.1.2-dev.56

3 years ago

0.1.2-dev.47

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.13-alpha.52

3 years ago

0.0.13-adminc.74

3 years ago

0.0.12

4 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15-alpha.0

3 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4-next.0

4 years ago

0.0.2-next.1304

4 years ago

0.0.3-meilis.0

4 years ago

0.0.2-meili.1214

4 years ago

0.0.2-meili.1212

4 years ago

0.0.2-meili.1211

4 years ago

0.0.2-meili.1213

4 years ago

0.0.2-meili.1209

4 years ago

0.0.2-alpha.1131

4 years ago