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

Add percentiles to Facet Module

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1
    • Component/s: None
    • Labels:
      None

      Description

      Use Ted Dunnings t-digest to add distributed percentile support to the new Facet Module (aka "JSON Facets").

      // single percentile over complete doc set
      json.facet={ median : 'percentile(my_field,50)' }
      
      // calculate multiple percentiles of a function
      json.facet={multi:'percentile( mul(f1,f2), 1,10,50,90,99)' }
      
      // calculate the median of each facet bucket and sort by that value
      json.facet={categories:{terms:{
        field:cat ,
        sort:'median desc' ,
        facet : {
          median : 'percentile(myfield,50)' ,
          otherstat : 'sum(something_else)'
        }
      }}}
      

        Attachments

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              yseeley@gmail.com Yonik Seeley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: