Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5720

Add ExpandComponent to expand results collapsed by the CollapsingQParserPlugin

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      This ticket introduces a new search component called the ExpandComponent. The expand component expands a single page of results collapsed by the CollapsingQParserPlugin.

      Sample syntax:

      q=*:*&fq={!collapse field=fieldA}&expand=true&expand.sort=fieldB+asc&expand.rows=10
      

      In the above query the results are collapsed on "fieldA" with the CollapsingQParserPlugin. The expand component expands the current page of collapsed results.

      The initial implementation of the ExpandComponent takes three parameters:

      expand=true (Turns on the ExpandComponent)
      expand.sort=fieldB+asc,fieldC+desc (Sorts the documents based on a sort spec. If none is specified the documents are sorted by relevance based on the main query.)
      expand.rows=10 (Sets the numbers of rows that groups are expanded to).

        Attachments

        1. SOLR-5720.patch
          35 kB
          Joel Bernstein
        2. SOLR-5720.patch
          34 kB
          Joel Bernstein
        3. SOLR-5720.patch
          34 kB
          Joel Bernstein
        4. SOLR-5720.patch
          32 kB
          Joel Bernstein
        5. SOLR-5720.patch
          30 kB
          Joel Bernstein
        6. SOLR-5720.patch
          30 kB
          Joel Bernstein
        7. SOLR-5720.patch
          28 kB
          Joel Bernstein
        8. SOLR-5720.patch
          28 kB
          Joel Bernstein
        9. SOLR-5720.patch
          30 kB
          Joel Bernstein

          Issue Links

            Activity

              People

              • Assignee:
                joel.bernstein Joel Bernstein
                Reporter:
                joel.bernstein Joel Bernstein
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: