Get parent and child objects in 1 query?

Hey all,

I am new with ES and I wonder if this is possible:

I have a user and a video type.

In my RDB structure the user and video table has many to many relation,
meaning a user can have more videos and a video can have more users.

And still am figuring how to make a local join (any ideas?)

But Now I have to make the video as parent and I added the user as child
but with no parent id as reference but as type parent is video.

Is there a way to get all the users and the video data in 1 search?

Best regards,

M

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2ef6fea7-b021-4360-a5b5-8b069b3e8ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.