Elasticsearch get all parents and children -
i have elastic search mapping parent , child documents. can one-to-many have created one-to-one relationship between parent , child. reason relationship instead of nested documents children updated , can avoid touching parent documents everytime. avoid creating deleted documents of parent doc type taking 70% more space required before merge happens.
now have query returns list of parent documents. want retrieve children parent list.
is possible parents , associated children same query instead of running separate query children of each parent?
Comments
Post a Comment