-
Notifications
You must be signed in to change notification settings - Fork 87
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
Reimporting aggregators only #273
Comments
Hi @mokhosh , Did you try passing the full classname (including namespace) to the command? For example, if your php artisan scout:reimport "App\Search\News" This should find the aggregator and reimport it. Let me know if it works for you 🙂 |
Thanks @DevinCodes for the response. It did work. I think it would be nice to have a config for aggregates folder that defaults to "app/Search" and we would look there too in addition to models folder when we're reimporting, so we don't need to explicitly indicate the namespace. |
I would love to hear what others think of such an option before we decide to implement it 🙂 Let's discuss! |
Hi all, I'm running the reimport like this What am I doing wrong? |
Hi @srlbarron , Do all classes in your Thank you in advance! |
Hi @DevinCodes, I got it solved and I honestly don't know what it was. Possible causes:
|
Okay, great to hear it got solved! 😄 Happy coding @srlbarron |
Description
With
scout:reimport
you can specify which searchable model you want to reimport. But if you have an aggregator calledNews
for example you cannot sayscout:reimport News
, you get:Steps To Reproduce
Make an aggregator
Try to reimport aggregator only
The text was updated successfully, but these errors were encountered: