-
Notifications
You must be signed in to change notification settings - Fork 62
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
Model not being imported #198
Comments
Helo, I have simillar issue and I find hard to diagnose the issue. I found that sometime if the mappableAs() array doen't perfectly match the toSearchableArray() array, the bulk doesn't works... but the job Any idea? |
I have the same problem with import. In the console the result is successful, but in the elastic logs there are not even requests to add documents.
|
I'd need more to context to help you, such as the versions of Elastic and Explorer and your explorer config (minus the auth of course) |
Same issue as I import model it's showing successful but when I check kibana it's not showing. And as I am looking for attachment content search like I have Epub book when I search than it's will search on that epub file book. As I check ingest plugin is there in elastic search but I did not find any relevant information so any one have idea than let me know. |
@Jeroen-G is there a way to eager load a relationship during the import process? |
I don't know! I have a feeling that is more of a Laravel Scout thing then Explorer 🤔 |
The Scout docs mention this;: https://laravel.com/docs/11.x/scout#modifying-the-import-query If you would like to modify the query that is used to retrieve all of your models for batch importing, you may define a makeAllSearchableUsing method on your model. This is a great place to add any eager relationship loading that may be necessary before importing your models:
and I do indeed now see the relationship in ES. @Jeroen-G, for the nested mapping , was that your intended way to get the relationships filled out? Or do you eager load all your models? I should also note, this seems only one way. It stores it in ES but later when I was able to do the following in my model that implements Searchable to eager load the nested models:
|
Nested wasn't necessarily created for relationships, but I assume they could easily be used for them. Maybe in combination with |
I had the same issue and the reason was that I forgot a simple thing:
|
Hi.
I am running the following commands
it all says its good and imported
Under Index Management in Kibana I have 0 docs on index systems
The text was updated successfully, but these errors were encountered: