I am using the official gems suite of elasticsearch elasticsearch-rails, I am having really hard time trying to index a parent/child relation, and I am not sure whether my problems are in the mapping or the indexing or the querying or in all of them !! so I wont post my code snippets.
Is there a full working example of the following:
I found a full example using 'Tire' gem, and I copied a lot of it but still no luck and can't find the equivilant methods in elasticsearch-rails gem, please help!
I found this test inside the gem, which has exactly what I needed and It works !
Posting it if someone has the same issue.