Elasticquent icon indicating copy to clipboard operation
Elasticquent copied to clipboard

Relation Data

Open jcrawford opened this issue 8 years ago • 2 comments

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.

jcrawford avatar Jan 10 '17 20:01 jcrawford

Duplicate https://github.com/elasticquent/Elasticquent/issues/135

andrewmclagan avatar Jan 30 '17 07:01 andrewmclagan

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.

mazharrehman avatar Jan 21 '19 00:01 mazharrehman