Hi all, I'm diving deep into the ChildDocTransformer and its related SubQueryAugmenter.
First of all, I think there's a bug in the Solr docs about [child]. It states: "This transformer returns all descendant documents of each parent document matching your query in a flat list nested inside the matching parent document." This is not exact: the descendant documents are "wired into" the parent, creating a hierarchical structure (which is nice). Or am I misinterpreting the docs? Secondly, the [subquery] transformer is super powerful and awesome, but it doesn't like to be combined with [child]? I'm getting a "[subquery] name children is duplicated" error. Is there a way to work around this? Or maybe better: is there a way to make the [subquery] transformer behave like (a more flexible version of) [child]? Because now, the path information (how the children relate to their parent fields) is lost when using [subquery]. Hope to hear more! b.