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

Add ValueSource collapse criteria to CollapsingQParsingPlugin

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7, 6.0
    • Component/s: search
    • Labels:
      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-edited.patch
          15 kB
          Peter Keegan
        2. SOLR-5536.patch
          15 kB
          Joel Bernstein
        3. SOLR-5536.patch
          15 kB
          Joel Bernstein
        4. SOLR-5536.patch
          14 kB
          Joel Bernstein
        5. SOLR-5536.patch
          8 kB
          Joel Bernstein

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: