OpenSearch/ElasticSearch
Hi, its possible to do searching,filtering and paginating without Scout on OpenSearch/ElasticSearch? How? Thank you!
5 Replies
possible somehow like with this?
applySearchToTableQuery
protected function applyFiltersToTableQuery
is there better way? like method where i can do all at once?
There is a
modifyQueryUsing
function have you tried that?I haven’t used elasticsearch personally, but as long as you are using an eloquent driver for it I would expect it to work in the same way as scout. https://filamentphp.com/docs/3.x/tables/advanced#searching-records-with-laravel-scout
not sure if its the best way, its looks like my idea working (part of it is same as from documentation @awcodes , but its not documented well), anyway thank you
If it’s working but you are needing it on more than one table, I would just make it a trait you can add to the components you need to.