algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
395 stars 85 forks source link

Does not work with the mysql driver #266

Closed rabol closed 3 years ago

rabol commented 3 years ago

Description

Im using a mysql driver for scout and it works fine. Then I was looking for a way to search from multiple models at the same time and saw scout-extended

Steps To Reproduce

Install an new laravel app install laravel scout install this yab/laravel-scout-mysql-driver install scout-extended

create 2 models add the scout Searchable trait test that i work

create aggregator

Add the two models to the aggregator class

then try to search:

TestSearch::search('test')->get();

Then I get the following error:

Call to undefined method class@anonymous/home/vagrant/code/backpack/vendor/algolia/scout-extended/src/Searchable/Aggregator.php:265$9c::toSearchableArray()
DevinCodes commented 3 years ago

Hi there!

Scout Extended is made to work with the Algolia driver, and not other drivers that Scout provides. As the logic we add in our package is highly specific to using Algolia in your app, there's currently no plans to add support for the other drivers.

If you still want to use Aggregators, feel free to create a free Algolia account and leverage all the features from Scout Extended.