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

Add ValueSource collapse criteria to CollapsingQParsingPlugin

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.6
    • 4.7, 6.0
    • search
    • None

    Description

      It would be useful for the CollapsingQParserPlugin to support ValueSource collapse criteria.

      Proposed syntax:

      fq={!collapse field=collapse_field max=value_source}
      

      This ticket will also introduce a function query called "cscore", which will return the score of the current document being collapsed. This will allow score to be incorporated into collapse criteria functions.

      A simple example of the cscore usage:

      fq={!collapse field=collapse_field max=sum(cscore(), field(x))}
      

      Attachments

        1. SOLR-5536.patch
          15 kB
          Joel Bernstein
        2. SOLR-5536.patch
          15 kB
          Joel Bernstein
        3. SOLR-5536.patch
          14 kB
          Joel Bernstein
        4. SOLR-5536.patch
          8 kB
          Joel Bernstein
        5. SOLR-5536-edited.patch
          15 kB
          Peter Keegan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jbernste Joel Bernstein
            jbernste Joel Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment