#problems with installing MeiliSearch

36 messages · Page 1 of 1 (latest)

vernal smelt
#

error in the terminal too 'error: An error occurred while processing SEARCH_INDEX_EVENT: MeiliSearchCommunicationError: fetch failed'

thorny karma
#

Your meilisearch is not running

vernal smelt
#

how i run it ?

vernal smelt
#

@thorny karma

vernal smelt
#

is it free ?

#

which url should i open

vernal smelt
#

@thorny karma

thorny karma
#

Stop tagging!

vernal smelt
#

sorry

thorny karma
#

Use your meilisearch instance url

vernal smelt
thorny karma
#

Set correctly the .env in medusa

#

And start the medusa

vernal smelt
#

its says

terse harness
#

Hey how are you doing today

#

@thorny karma

thorny karma
thorny karma
magic venture
#

@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... }),

harsh tree
#

For your information not selfhosted meilisearch might be more expensive than Algolia when you're just starting.

thorny karma
#

@vernal smelt you need to configure medusa to include the meilisearch information and restart medusa to initiate the caching

vernal smelt
#

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...
          })
        },
      },
    },
  },
];
thorny karma
#

Mark this solved

vernal smelt
#

Solved

#

/solved

#

?help

#

solved

livid rune
#

hey

#

did you solve it

#

am having same issue