[
https://issues.apache.org/jira/browse/SOLR-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091541#comment-14091541
]
Hoss Man commented on SOLR-6352:
--------------------------------
In general there is a lot of overlap here with SOLR-6351 -- see that issue for
a breakdown of the StatsComponent changes/refactorings that this task could
leverage.
> 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: [email protected]
For additional commands, e-mail: [email protected]