Elastic Search
is there any way to integrate elastic search with filament?
i integrated with laravel scout but it seems not working
https://filamentphp.com/docs/3.x/tables/advanced#searching-records-with-laravel-scout
6 Replies
What's not working for you? What is the issue?
Should be a similar process you just override the query with what ever elastic search says to do in their docs.
i have added applySearchTableQuery inmy resource but this function never get executed
I think
applySearchToTableQuery()
should go on your page class (e.g. ListPosts
) instead of the resource class
I just noticed that the question is tagged as v2
but you seem to be following the docs for v3
(I think the instructions are the same, but I'm not 100% sure)thanks it works. Same i want to do it with global search how can i achieve it? ( i am using v2)
I think this should work for global search (on the resource):
https://filamentphp.com/docs/2.x/admin/resources/global-search#details