Class ExpandComponent

  • All Implemented Interfaces:
    AutoCloseable, SolrInfoBean, SolrMetricProducer, NamedListInitializedPlugin, PluginInfoInitialized

    public class ExpandComponent
    extends SearchComponent
    implements PluginInfoInitialized
    The ExpandComponent is designed to work with the CollapsingPostFilter. The CollapsingPostFilter collapses a result set on a field.

    The ExpandComponent expands the collapsed groups for a single page. When multiple collapse groups are specified then, the field is chosen from collapse group with min cost. If the cost are equal then, the field is chosen from first collapse group.

    http parameters:

    expand=true
    expand.rows=5
    expand.sort=field asc|desc
    expand.q=*:* (optional, overrides the main query)
    expand.fq=type:child (optional, overrides the main filter queries)
    expand.field=field (mandatory, if the not used with the CollapsingQParserPlugin. This is given higher priority when both are present)