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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2, 6.0
    • Component/s: faceting
    • Labels:
      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

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              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