Mapping Grandparent elasticsearch 6

Hi all,
I need to map Grandparent->parent->child but I don't know how to do that. I only know how to define a parent child relationship with "join datatype" but that's all.
Can you help me ?
Thank you.

Hey,

you could try to have two different join fields (grandparent -> parent and parent -> child) in your mapping first and you also have to make sure that you index childs,parents and grandparent documents with the same routing value so they end up in the same shard.

Hope this helps.

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.