How to get this working in laravel with model relationship #59
Replies: 2 comments 4 replies
-
First thing I see is you have both After fixing that, does this work?
|
Beta Was this translation helpful? Give feedback.
-
I tried to get an example working in the demo application for Explorer: Jeroen-G/explorer-demo#4 It seems that there is a bug if I look at the query it runs and what ES expects according to https://www.elastic.co/guide/en/elasticsearch/reference/7.13/query-dsl-nested-query.html#nested-query-ex-query I think Nested should be refactored to replace the overall bool query instead of being a child of it. You're welcome to tag along to get this fixed. I will create a proper issue for this. |
Beta Was this translation helpful? Give feedback.
-
Hello there,
I am really curious on how to use this with laravel models and their relationships. As an example I have Product model which belongsTo Season model. I tried following this guide but without any luck.
Please correct me if im setting it up incorectly. Here is my Product model part:
Here are my indexes:
Here is the part of Season model:
And what I am trying to run is this:
But I am receiving an error stating:
Failed to find nested object under path [season]
What am I doing wrong please? I would be really grateful for any advice.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions