Elasticquent
Elasticquent copied to clipboard
Relation Data
I have a Posts model but each post also has a location() relation. Is there any way to index the Post and related data for the post at the same time?
Post::addAllToIndex();
The above does not actually index any relations only the Post model data.
Duplicate https://github.com/elasticquent/Elasticquent/issues/135
Please help me i m also facing this issue . how to index relationship. i have company basic info table then address table and phone no table. So how can index company relationship.