ElasticSearch parent/child on different indexes -
have 2 objects: humans , belongings. want specify _parent of belonging specific human. elasticsearch provides ability via _parent mapping. documentation , examples i've found doing within same index.
but if had humans index, , belongings index, i'm wondering if able specify parent relationship across indexes. preliminary tests seem point no.
furthermore, theory cannot because result in human being on different shard belonging (different indexes, different shards). know documentation human id used route child (upon indexing) same shard human. efficiency purposes (in memory joins, round trips, etc). cannot occur since we're talking different shards altogether.
question #1: know if _parent can specified across indexes?
and if so,
question #2: how routing issues mentioned resolved internally?
you correct in saying "different index, different shard" - meaning answer question #1 no. that, #2 cannot answered.
Comments
Post a Comment