You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2014/08/09 03:18:11 UTC

[jira] [Created] (SOLR-6352) Let Stats Hang off of Range Facets

Hoss Man created SOLR-6352:
------------------------------

             Summary: Let Stats Hang off of Range Facets
                 Key: SOLR-6352
                 URL: https://issues.apache.org/jira/browse/SOLR-6352
             Project: Solr
          Issue Type: Sub-task
            Reporter: Hoss Man


The same basic idea as the sibling pivot issue: ask the RangeFacet code to compute some stats X for each range it generates.  We can do this with the existing {{stats.field}} params, but we'll leverage the {{tag}} local param of the {{stats.field}} instances to be able to associate which stats we want hanging off of which {{facet.range}} instance

Example...
{noformat}
facet.range={!stats=s1}timestamp
facet.range={!stats=s2}bytes_sent
stats.field={!key=sum_bytes tag=s1 sum=true}bytes_sent
stats.field={!tag=s1 percentiles=99}request_duration
stats.field={!tag=s2 mean=true percentiles=99}request_duration
{noformat}

...with the request above, (hypothetically over an index of web log traffic) each range bucket over the "timestamp" field will (in addition to simple facet count) also include the sum of total bytes_sent, and the 99th percentile of request_duration for all docs in that time range; and each range bucket over the "bytes_sent" field will (in addition to simple facet count) also include the mean and 99th percentile of request_duration.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org