Generic child/parent relationships

Hi all,

I'd like to index generic child/parent relationships, i.e. not requiring
all children having a parent of the same type. For example instead of a
"blog_tag" child type with a "blog" parent type, an "article_tag" child
with an "article" parent type and so on, have a single "tag" child type
with a (static or dynamic) set of possible parent types. If (as I can
tell) elasticsearch doesn't support such functionality out of the box, what
is a good way to work around this?

Thanks,
George

You have to specify in the mapping of the child its parent.

On Thu, Nov 24, 2011 at 12:02 AM, George Sakkis george.sakkis@gmail.comwrote:

Hi all,

I'd like to index generic child/parent relationships, i.e. not requiring
all children having a parent of the same type. For example instead of a
"blog_tag" child type with a "blog" parent type, an "article_tag" child
with an "article" parent type and so on, have a single "tag" child type
with a (static or dynamic) set of possible parent types. If (as I can
tell) elasticsearch doesn't support such functionality out of the box, what
is a good way to work around this?

Thanks,
George