Elasticsearch Parent/Child nested relationship impose having the parent and children on the same shard by using the _routing field during ingesting.
I was wondering if using the same process would provide performance improvement while using the collapse
feature of elasticsearch or would it make it worst?
If we look at both cases:
1) Routing to the same shard: the shard is able to do the collapsing on its own and return already fully collapsed documents
2) Document are on many shards: the collapse can only happen later with all shards returning lots of documents that will be collapsed later.
I do not know if elasticsearch will do the 2nd even though documents where on the same shard.
Thanks.