public class GroupedEndResultTransformer extends java.lang.Object implements EndResultTransformer
EndResultTransformer
that keeps each grouped result separate in the final response.EndResultTransformer.SolrDocumentSource
Modifier and Type | Field and Description |
---|---|
private SolrIndexSearcher |
searcher |
Constructor and Description |
---|
GroupedEndResultTransformer(SolrIndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
void |
transform(java.util.Map<java.lang.String,?> result,
ResponseBuilder rb,
EndResultTransformer.SolrDocumentSource solrDocumentSource)
Transforms the specified result into its final form and puts it into the specified response.
|
private final SolrIndexSearcher searcher
public GroupedEndResultTransformer(SolrIndexSearcher searcher)
public void transform(java.util.Map<java.lang.String,?> result, ResponseBuilder rb, EndResultTransformer.SolrDocumentSource solrDocumentSource)
transform
in interface EndResultTransformer
result
- The map containing the grouping result (for grouping by field and query)rb
- The response builder containing the response used to render the result and the grouping specificationsolrDocumentSource
- The source of SolrDocument
instances