Reputation: 1
I'm looking for some help with ElasticSearch involving multiple "parent" types sharing the same "child" type.
As a trivial example, let's say I have two parent types:
I'd like to have a single "comment" type which is a child of both "blogEntry" and "status", since users can comment on both blog entries and users' status updates.
Is this actually possible in ES?
Or, am I looking at this problem in the wrong way? Does parent-child make no sense here, and instead would I want to use nested objects?
Thanks!
Upvotes: 0
Views: 291
Reputation: 190
This is not possible at the moment:
You could instead have one child as nested document to the parent and the more frequently changing one as an actual child referencing the parent type.
Upvotes: 0