Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 4.6, Trunk
    • Component/s: search
    • Labels:
      None

      Description

      This ticket introduces the CollapsingQParserPlugin

      The CollapsingQParserPlugin is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with ngroups) when the number of distinct groups in the result set is high.

      For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
      Standard grouping with ngroups : 17 seconds.
      CollapsingQParserPlugin: 300 milli-seconds.

      Sample syntax:

      Collapse based on the highest scoring document:

      fq=(!collapse field=<field_name>}
      

      Collapse based on the min value of a numeric field:

      fq={!collapse field=<field_name> min=<field_name>}
      

      Collapse based on the max value of a numeric field:

      fq={!collapse field=<field_name> max=<field_name>}
      

      Collapse with a null policy:

      fq={!collapse field=<field_name> nullPolicy=<null_policy>}
      

      There are three null policies:
      ignore : removes docs with a null value in the collapse field (default).
      expand : treats each doc with a null value in the collapse field as a separate group.
      collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

      The CollapsingQParserPlugin also fully supports the QueryElevationComponent

      Note: The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will be moved to it's own ticket.

      1. SOLR-5027.patch
        10 kB
        Joel Bernstein
      2. SOLR-5027.patch
        13 kB
        Joel Bernstein
      3. SOLR-5027.patch
        26 kB
        Joel Bernstein
      4. SOLR-5027.patch
        27 kB
        Joel Bernstein
      5. SOLR-5027.patch
        31 kB
        Joel Bernstein
      6. SOLR-5027.patch
        37 kB
        Joel Bernstein
      7. SOLR-5027.patch
        60 kB
        Joel Bernstein
      8. SOLR-5027.patch
        60 kB
        Joel Bernstein
      9. SOLR-5027.patch
        61 kB
        Joel Bernstein

        Issue Links

          Activity

          Joel Bernstein created issue -
          Joel Bernstein made changes -
          Field Original Value New Value
          Attachment SOLR-5027.patch [ 12591677 ]
          Joel Bernstein made changes -
          Link This issue relates to SOLR-4465 [ SOLR-4465 ]
          Joel Bernstein made changes -
          Link This issue relates to SOLR-5020 [ SOLR-5020 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12592036 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12592554 ]
          Joel Bernstein made changes -
          Summary CollapsingQParserPlugin Result Set Collapse and Expand Plugins
          Joel Bernstein made changes -
          Description The CollapsingQParserPlugin is a PostFilter that performs field collapsing.

          This allows field collapsing to be done within the normal search flow.

          Initial syntax:

          fq=(!collapse field=<field_name>}

          All documents in a group will be collapsed to the highest ranking document in the group.



          This ticket introduces two new Solr plugins, the CollapsingQParserPlugin and the ExpandComponent.


          The CollapsingQParserPlugin is a PostFilter that performs field collapsing.

          This allows field collapsing to be done within the normal search flow.

          Initial syntax:

          fq=(!collapse field=<field_name>}

          All documents in a group will be collapsed to the highest ranking document in the group.

          The ExpandComponed is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.




          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the CollapsingQParserPlugin and the ExpandComponent.


          The CollapsingQParserPlugin is a PostFilter that performs field collapsing.

          This allows field collapsing to be done within the normal search flow.

          Initial syntax:

          fq=(!collapse field=<field_name>}

          All documents in a group will be collapsed to the highest ranking document in the group.

          The ExpandComponed is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.




          This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          This allows field collapsing to be done within the normal search flow.

          Initial syntax:

          fq=(!collapse field=<field_name>}

          All documents in a group will be collapsed to the highest ranking document in the group.

          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.




          Joel Bernstein made changes -
          Link This issue is related to SOLR-5045 [ SOLR-5045 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12605336 ]
          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          This allows field collapsing to be done within the normal search flow.

          Initial syntax:

          fq=(!collapse field=<field_name>}

          All documents in a group will be collapsed to the highest ranking document in the group.

          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.




          This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          <*code*>
          fq=(!collapse field=<field_name>}
          <*code*>

          Collapse based on the min value of a numeric field:
          <*code*>
          fq={!collapse field=<field_name> min=<field_name>}
          <*code*>

          Collapse based on the max value of a numeric field:
          <*code*>
          fq={!collapse field=<field_name> max=<field_name>}
          <*code*>

          Collapse with a null policy:
          <*code*>
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          <*code*>
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          <*code*>
          fq=(!collapse field=<field_name>}
          <*code*>

          Collapse based on the min value of a numeric field:
          <*code*>
          fq={!collapse field=<field_name> min=<field_name>}
          <*code*>

          Collapse based on the max value of a numeric field:
          <*code*>
          fq={!collapse field=<field_name> max=<field_name>}
          <*code*>

          Collapse with a null policy:
          <*code*>
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          <*code*>
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {*code*}
          fq=(!collapse field=<field_name>}
          <*code*>

          Collapse based on the min value of a numeric field:
          {*code*}
          fq={!collapse field=<field_name> min=<field_name>}
          <*code*>

          Collapse based on the max value of a numeric field:
          {*code*}
          fq={!collapse field=<field_name> max=<field_name>}
          <*code*>

          Collapse with a null policy:
          {*code*}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {*code*}
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {*code*}
          fq=(!collapse field=<field_name>}
          <*code*>

          Collapse based on the min value of a numeric field:
          {*code*}
          fq={!collapse field=<field_name> min=<field_name>}
          <*code*>

          Collapse based on the max value of a numeric field:
          {*code*}
          fq={!collapse field=<field_name> max=<field_name>}
          <*code*>

          Collapse with a null policy:
          {*code*}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {*code*}
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes values docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with null value into a single group use either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12606461 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12607620 ]
          Joel Bernstein made changes -
          Summary Result Set Collapse and Expand Plugins Field Collapsing PostFilter
          Joel Bernstein made changes -
          Description This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin* and the *ExpandComponent*.


          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.









          The *ExpandComponent* is a search component that takes the collapsed docList and expands the groups for a single page based on parameters provided.

          Initial syntax:

          expand=true - Turns on the expand component.
          expand.field=<field> - Expands results for this field
          expand.limit=5 - Limits the documents for each expanded group.
          expand.sort=<sort spec> - The sort spec for the expanded documents. Default is score.
          expand.rows=500 - The max number of expanded results to bring back. Default is 500.

          *Note:* Recent patches don't contain the expand component. The July 16 patch does. This will be brought back in when the collapse is finished, or possible moved to it's own ticket.




          This ticket introduces the *CollapsingQParserPlugin*

          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with *ngroups*) when the number of distinct groups in the result set is high.

          For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
          Standard grouping with ngroups : 17 seconds.
          CollapsingQParserPlugin: 300 milli-seconds.

          Sample syntax:

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

          *Note:* The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will moved to it's own ticket.




          Joel Bernstein made changes -
          Assignee Joel Bernstein [ joel.bernstein ]
          Joel Bernstein made changes -
          Fix Version/s 4.6 [ 12325000 ]
          Fix Version/s 5.0 [ 12321664 ]
          Joel Bernstein made changes -
          Description This ticket introduces the *CollapsingQParserPlugin*

          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with *ngroups*) when the number of distinct groups in the result set is high.

          For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
          Standard grouping with ngroups : 17 seconds.
          CollapsingQParserPlugin: 300 milli-seconds.

          Sample syntax:

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

          *Note:* The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will moved to it's own ticket.




          This ticket introduces the *CollapsingQParserPlugin*

          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with *ngroups*) when the number of distinct groups in the result set is high.

          For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
          Standard grouping with ngroups : 17 seconds.
          CollapsingQParserPlugin: 300 milli-seconds.

          Sample syntax:

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

          The CollapsingQParserPlugin also fully supports the QueryElevationComponent

          *Note:* The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will moved to it's own ticket.




          Joel Bernstein made changes -
          Description This ticket introduces the *CollapsingQParserPlugin*

          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with *ngroups*) when the number of distinct groups in the result set is high.

          For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
          Standard grouping with ngroups : 17 seconds.
          CollapsingQParserPlugin: 300 milli-seconds.

          Sample syntax:

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

          The CollapsingQParserPlugin also fully supports the QueryElevationComponent

          *Note:* The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will moved to it's own ticket.




          This ticket introduces the *CollapsingQParserPlugin*

          The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing. This is a high performance alternative to standard Solr field collapsing (with *ngroups*) when the number of distinct groups in the result set is high.

          For example in one performance test, a search with 10 million full results and 1 million collapsed groups:
          Standard grouping with ngroups : 17 seconds.
          CollapsingQParserPlugin: 300 milli-seconds.

          Sample syntax:

          Collapse based on the highest scoring document:

          {code}
          fq=(!collapse field=<field_name>}
          {code}

          Collapse based on the min value of a numeric field:
          {code}
          fq={!collapse field=<field_name> min=<field_name>}
          {code}

          Collapse based on the max value of a numeric field:
          {code}
          fq={!collapse field=<field_name> max=<field_name>}
          {code}

          Collapse with a null policy:
          {code}
          fq={!collapse field=<field_name> nullPolicy=<null_policy>}
          {code}
          There are three null policies:
          ignore : removes docs with a null value in the collapse field (default).
          expand : treats each doc with a null value in the collapse field as a separate group.
          collapse : collapses all docs with a null value into a single group using either highest score, or min/max.

          The CollapsingQParserPlugin also fully supports the QueryElevationComponent

          *Note:* The July 16 patch also includes and ExpandComponent that expands the collapsed groups for the current search result page. This functionality will be moved to it's own ticket.




          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12607680 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12607941 ]
          Joel Bernstein made changes -
          Attachment SOLR-5027.patch [ 12608075 ]
          Joel Bernstein made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Brandon Chapman made changes -
          Link This issue is related to SOLR-5408 [ SOLR-5408 ]
          David Boychuck made changes -
          Link This issue is broken by SOLR-5416 [ SOLR-5416 ]
          Joel Bernstein made changes -
          Link This issue relates to SOLR-5720 [ SOLR-5720 ]

            People

            • Assignee:
              Joel Bernstein
              Reporter:
              Joel Bernstein
            • Votes:
              3 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development