org.apache.solr.response.transform

## Class ChildDocTransformerFactory

- java.lang.Object
- - org.apache.solr.response.transform.TransformerFactory
  - - org.apache.solr.response.transform.ChildDocTransformerFactory

- All Implemented Interfaces:
    NamedListInitializedPlugin

      public class ChildDocTransformerFactory
      extends TransformerFactory

  Since:
    solr 4.9 This transformer returns all descendants of each parent document in a flat list nested inside the parent document. The "parentFilter" parameter is mandatory. Optionally you can provide a "childFilter" param to filter out which child documents should be returned and a "limit" param which provides an option to specify the number of child documents to be returned per parent document. By default it's set to 10. Examples - [child parentFilter="fieldName:fieldValue"] [child parentFilter="fieldName:fieldValue" childFilter="fieldName:fieldValue"] [child parentFilter="fieldName:fieldValue" childFilter="fieldName:fieldValue" limit=20]

- - ### Field Summary

    - ### Fields inherited from class org.apache.solr.response.transform.TransformerFactory

      `defaultFactories, defaultUserArgs`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ChildDocTransformerFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DocTransformer` | `create(String field, SolrParams params, SolrQueryRequest req)`

    - ### Methods inherited from class org.apache.solr.response.transform.TransformerFactory

      `init`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ChildDocTransformerFactory

          public ChildDocTransformerFactory()

  - ### Method Detail

    - #### create

          public DocTransformer create(String field,
                                       SolrParams params,
                                       SolrQueryRequest req)

      Specified by:
        `create` in class `TransformerFactory`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.