Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregator #234

Open
antoniogoncalves92 opened this issue Mar 26, 2020 · 2 comments
Open

Aggregator #234

antoniogoncalves92 opened this issue Mar 26, 2020 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@antoniogoncalves92
Copy link

antoniogoncalves92 commented Mar 26, 2020

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.

@nunomaduro nunomaduro added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 26, 2020
@srlbarron
Copy link

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
Copy link

stefanobianchini commented Nov 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants