While going through elasticsearch documentation on Parent-Child relationship I found this line and I am not to sure about it.
the parent document and all of its children must live on the same shard.
Use Case:
- I have a Elasticsearch index in parent-child relationship with two types company[parent] and employee[child]
- The records to be indexed are in these pattern 1 parent has more than 100 child.
- The volume of the index is big so we need to shard them across multiple systems
As per the statement both parent and child as to reside in the same shard since we are sharding across multiple systems is there chance that parent and child may reside in different shard.
if so how to avoid them? if not please explain?