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

ClassCastException when using group.query and return score

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.1.1, 8.2
    • 8.4
    • search

    Description

      When grouping the results of a query with group.query there is a ClassCastException in org.apache.solr.search.Grouping.CommandQuery.finish (line 890) since the collector is wrapped in a MultiCollector. 

      The wanted topCollector is available in the inner class so it can be used directly and the cast is not necessary at all. After that change there are still the scores missing in the result, so populating the scores is necessary, too.

      I will create a PR showing the error and also containing a fix.

      Attachments

        1. SOLR-13823.patch
          10 kB
          Munendra S N
        2. SOLR-13823.patch
          10 kB
          Munendra S N

        Issue Links

          Activity

            People

              munendrasn Munendra S N
              uwej711 Uwe Jäger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h