adamfairholm / Elasticquent

Map Larvel Eloquent models to Elasticsearch types
MIT License
201 stars 38 forks source link

Working with related models #31

Open alfchee opened 9 years ago

alfchee commented 9 years ago

I'm using it in a project, but I found that I would like to have indexed some information from relationships. I know this have to be sent to ElastichSearch formated like Documents and Subdocuments, so if I have a Product, what can I do to have Product.type in ElasticSearch instead to Product.type_id ? Being Product.type a string with the name of the Type and type_id the Id of the Type.

ArnaudTarroux commented 8 years ago

@alfchee Hi, I have the same problem. Have you found a solution for this ? Many thanks