Searching with Laravel Scout and Meilisearch: Custom search and Meilisearch filters (8/10)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

I just want to mentioning if you are applying this tutorial to the current release of meilisearch (0.27 at the time of writing) they changed the filterable key name in the options object from "filters" (as seen in this video) to "filter".

now:
$options['filter'] = 'user_id=1';

There are a number of other changes as well, make sure to checkout the official docs.

The tutorial series is still very helpful and relevant for 0.27. Just make sure you really read/investigate any errors and consult the docs/online resources.


Best of luck devs!

AirIsLungFood
Автор

OK, but if I have a support table to control relationship, like Category - Product - category_product to relationship, how can I filter all products in a determinate category?

DanielDrummondk
Автор

Thanks for this tutorial. I have a question

when I do a filter with user_id, it give me this error:

Attribute `user_id` is not filterable. This index does not have configured filterable attributes. 1:8 user_id=5

I am using mysql database not postgresql

elsayedelbeshry
Автор

07:07 where is the $userId declaration? the if at line 16 should be == ?

DiazGunturFebrian
Автор

Unfortunately as from v0.20, you have to set filterableAttributes before you can use filters in laravel scout

CursorStartups
Автор

Hello, how can I get this to work??? = ["*"];. I want to do a keywords highlighting

ignatiusn