Class ChildDocTransformerFactory
java.lang.Object
org.apache.solr.response.transform.TransformerFactory
org.apache.solr.response.transform.ChildDocTransformerFactory
- All Implemented Interfaces:
NamedListInitializedPlugin
Attaches all descendants (child documents) to each parent document.
Optionally you can provide a "parentFilter" param to designate which documents are the root documents (parent-most documents). Solr can figure this out on its own but you might want to specify it.
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.
Examples - [child parentFilter="fieldName:fieldValue"] [child parentFilter="fieldName:fieldValue" childFilter="fieldName:fieldValue"] [child parentFilter="fieldName:fieldValue" childFilter="fieldName:fieldValue" limit=20]
- Since:
- solr 4.9
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.response.transform.TransformerFactory
TransformerFactory.FieldRenamer -
Field Summary
FieldsFields inherited from class org.apache.solr.response.transform.TransformerFactory
defaultFactories, defaultUserArgs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req) protected static StringprocessPathHierarchyQueryString(String queryString) Methods inherited from class org.apache.solr.response.transform.TransformerFactory
init
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
ChildDocTransformerFactory
public ChildDocTransformerFactory()
-
-
Method Details
-
create
public DocTransformer create(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req) - Specified by:
createin classTransformerFactory
-
processPathHierarchyQueryString
-