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

Unable to use any function other than sum as sorting parameter for newly added solr facet aggregation functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1
    • 5.2, 6.0
    • faceting
    • None

    Description

      The error thrown is
      "error":{
      "msg":"org.apache.solr.search.facet.AvgAgg$1 cannot be cast to org.apache.solr.search.facet.FacetSortableMerger",

      and input json request is
      responseHeader":{
      "status":500,
      "QTime":24,
      "params":{
      "q":":",
      "json.facet":"{ categories:{ terms:{ field :something, limit :something, sort :

      { y : desc}

      , facet:

      {\t y : \"avg(sub(amount,count))\" }

      } } }",
      "fq":"some thing else",
      "rows":"0"}},

      Attachments

        1. SOLR-7387.patch
          16 kB
          Yonik Seeley

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            iamvamsi Vamsi Krishna D
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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