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
Get only main body from indexed object from elasticsearch #117
Comments
I think you just need to eager load the relations before indexing the data. Or, what I like to do, is add the protected member $with to the model like this ... protected $with = ['user','category','tags']; This will automatically eager load user, category, and tags every time the model is accessed ... including when scout indexes documents. |
I have the model with relations indexed on elastic search, but, to return a search, I dont got the relations, in elasticsearch all data are there, all data of relations too. Only on search the data arent returned. |
hmm that does seem a little odd ... |
someone any idea? |
1 similar comment
someone any idea? |
Going to close this as Elasticsearch support has been removed since. There are some third party packages on packages with an Elasticsearch engine for scout. |
Interesting, if you have a problem, you drop a tool (part of) that you created for erase the problem? |
@IgorDePaula this was 2 years ago. You're always welcome to create a full and working ElasticSearch implementation for Scout yourself if you want :) |
Thank you
Em sáb, 6 de out de 2018 às 08:01, Dries Vints <notifications@github.com>
escreveu:
… @IgorDePaula <https://github.com/IgorDePaula> this was 2 years ago.
You're always welcome to create a full and working ElasticSearch
implementation for Scout yourself if you want :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#117 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACs-SQZqIeufepNNecCg0bERhtSNrgCKks5uiI1tgaJpZM4KgdaQ>
.
|
I got indexed the model with yours relationships, the elasticsearch show me all data (relationship included) but on search by model, I got only data from main body, I dont got the data from relationship indexed too.
The text was updated successfully, but these errors were encountered: