Solr
  1. Solr
  2. SOLR-5536

Add ValueSource collapse criteria to CollapsingQParsingPlugin

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7, Trunk
    • 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))}
      
      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

        Joel Bernstein created issue -
        Joel Bernstein made changes -
        Field Original Value New Value
        Attachment SOLR-5536.patch [ 12617329 ]
        Joel Bernstein made changes -
        Description It would be useful for the CollapsingQParserPlugin to support ValueSource collapse criteria.

        Proposed syntax:

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

        This ticket will also introduce a function query called "collapseScore", 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 collapseScore usage:

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













         
        Joel Bernstein made changes -
        Assignee Joel Bernstein [ joel.bernstein ]
        Joel Bernstein made changes -
        Attachment SOLR-5536.patch [ 12620519 ]
        Joel Bernstein made changes -
        Description It would be useful for the CollapsingQParserPlugin to support ValueSource collapse criteria.

        Proposed syntax:

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

        This ticket will also introduce a function query called "collapseScore", 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 collapseScore usage:

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













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

        Proposed syntax:

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

        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:

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













         
        Joel Bernstein made changes -
        Attachment SOLR-5536.patch [ 12620539 ]
        Joel Bernstein made changes -
        Attachment SOLR-5536.patch [ 12620617 ]
        Joel Bernstein made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Peter Keegan made changes -
        Attachment SOLR-5536-edited.patch [ 12631767 ]
        David Smiley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development