Join GitHub today
The parent option on update request should be used for upsert only. #9612
@rjernst Thanks, setting and routing and parent is common when dealing with multi layered parent child mappings. For example the in case of a grandparent > parent > child relationship, when indexing the child doc the routing is set to the grandparent id and the parent is set to the parent id. This will ensure that direct and indirect children of grandparents reside on the same shard.