laravel-scout-elasticsearch: eager load is not working
Software Version PHP 7.2.5 Elasticsearch 7.9.3 Laravel 7 Laravel Scout 8.3
I followed the steps from the eager load section but the method from in the MyImportSourceFactory is not triggered
Should we call that method manually ? Or it is supposed to be triggered automatically ?
Also I saw that now there is a method named makeAllSearchableUsing in the Searchable class which can be used to eager load relationships. Is that supported from the package ?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 26 (24 by maintainers)
@arturslogins just stumbled upon this issue, but it’s actually very easy to use Scout’s native
makeAllSearchableUsingmethod in this packageThe only thing to be aware of it that the visibility of the method must be set to
public(unless you want to use Reflection)Hello, when you plan to include
makeAllSearchableUsingmethod ?