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

Sum aggregation not supported for externalField [Exception]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.7
    • None
    • search
    • None

    Description

      I upgraded solr (earlier version was 8.1.0) and got the following exception:

      org.apache.solr.common.SolrException: sum aggregation not supported for popularityFile
       at org.apache.solr.search.facet.SumAgg.createSlotAcc(SumAgg.java:45)
       at org.apache.solr.search.facet.FacetFieldProcessor.createCollectAcc(FacetFieldProcessor.java:221)
       at org.apache.solr.search.facet.FacetFieldProcessorByArray.createCollectAcc(FacetFieldProcessorByArray.java:87)

      It happens when doing sum aggregation on a field type of solr.ExternalFileField

      Here's the fieldType config:

      <fieldType name="popularityFile" keyField="id" defVal="0" stored="true" indexed="true" class="solr.ExternalFileField"/>

      Attachments

        Activity

          People

            Unassigned Unassigned
            hkk12369 Hitesh Khandelwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: