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
400 stars 87 forks source link

Aggregator #234

Open antoniogoncalves92 opened 4 years ago

antoniogoncalves92 commented 4 years ago

Hi, i am currently using your services to implement an instant search to improve system search. And everything looks great till now. But currently i m getting an issues with a model import data, since am using aggregator to use multiples models in one indice.

The issues is like so:

  1. When i add some models, lets say, Contrato, Pagamento and User to the models array property of the Aggregator class it works fine.

  2. When i add Projecto model to the models array property of the Aggregator class it only send the Projecto fields to the searchableAttributes of the aggregator indice.

OBS: i am using laravel + scout extended.

Hope you guys can help me with this issue.

srlbarron commented 3 years ago

Something simillar happens to me:

    protected $models = [
        Club::class,
        SiteUser::class,
    ];

When I run reimport it will only run the import/reimport for $models[0];

stefanobianchini commented 2 years ago

The same happens to me:

protected $models = [
        Article::class,
        Page::class,
    ];

Only Page entries are imported on index.

And when i try to execute: php artisan scout:import "App\Models\Articles" The Page entries are flushed and only Article entries are present in the index.

Any news about this issue?

EDIT: i've just tried php artisan scout:reimport "App\Search\SearchableElement"

and with this command, all works fine.