#meilisearch empty hit values

12 messages · Page 1 of 1 (latest)

strong moth
#

Hey,

I configured and deployed a meilisearch instance into my env and everything seems okay except that I got empty values in my indexed products.

I followed these docs without any additional config:
https://docs.medusajs.com/plugins/search/meilisearch
https://www.meilisearch.com/docs/learn/cookbooks/railway#introduction

I have the latest version of everything.

I did a re-index from medusa and in the logs I didn't see any errors just:
2024-03-02T07:39:49Z INFO index_scheduler::batch] document addition done: DocumentAdditionResult { indexed_documents: 64, number_of_documents: 64 }

dim remnant
#

Have you configured the plugin?

strong moth
#

I used the example config on Medusa docs as it states "Here's an example of the settings you can use"
But without that I wouldn't have anything in the search.

#

Now I configured everything on my local so hopefully the debugging will be faster.

strong moth
#

Ok I figured it out. That example cannot be used as it is. It needs additional configs in the "transformer" part to connect the fields with the values.

#

or it doesn't even need that transformer...
I don't know where I got it from.

#

I'll make a PR with a valid config or a clarification for this doc.

dim remnant
#

This doc look pretty clear and straightforward, however feel free to submit

strong moth
#

What is actually there is clear and straightforward but the example code is not working out of the box and there's nothing that explains it or anything. So if you don't familiar with meilisearch - like me - you get where I was.
And it is also a sign that the transformer part is not included in the other docs, maybe and mainly because it just works without it.

gloomy briar
#

The docs aren't updated yet. I followed the example config and got empty documents in Meilisearch too. Did you find you how to use the transformerfunction?

spiral dome
#

I have added a pull request for better example.