elasticsearch - Indexing of grandchildren: routing -


i've created deep parent child relationship using spring data elasticsearch:

parent -> child -> grandchild 

but has_parent queries on grandchild don't work. elasticsearch documentation says,

we need add routing parameter, set id of grandparent, ensure 3 generations indexed on same shard.

how can add parameter in spring data elasticsearch?


Comments