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

Add ExpandComponent to expand results collapsed by the CollapsingQParserPlugin

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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:
              jbernste Joel Bernstein
              Reporter:
              jbernste Joel Bernstein

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment