Felix
Felix

Reputation: 2661

Where does Laravel Scout store Meilisearch settings?

I don't mean filters, I mean settings: https://docs.meilisearch.com/reference/api/settings.html

So let's say I wanted to change the default Meilisearch 'stopword' setting for a specific model (or even all models)

$client->index('movies')->updateStopWords(['the', 'of', 'to']);

how could I do this?

Upvotes: 2

Views: 1130

Answers (1)

Patrick Lamontagne
Patrick Lamontagne

Reputation: 51

Scout creates a singleton with the Meilisearch client. That means you can access the instance from anywhere within your laravel container like this :

$client = app(\MeiliSearch\Client::class);
$client->index('movies')->updateStopWords(['the', 'of', 'to']);

Upvotes: 5

Related Questions