lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-6352) Let Stats Hang off of Range Facets
Date Fri, 10 Jul 2015 19:44:04 GMT

     [ https://issues.apache.org/jira/browse/SOLR-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shalin Shekhar Mangar updated SOLR-6352:
----------------------------------------
    Attachment: SOLR-6352.patch

Here's a patch which implements this feature according to the response format described above.

There are still a few nocommits:
# Support for hanging stats is not implemented when facet.range.method=dv
# I don't know what to do when group.facet=true. It looks like this option just counts the
number of groups when the current facet range is applied as a filter. But there is no DocSet
to calculate the filter on except the base DocSet which is the results of the main query.
For now, this patch just throws an exception in such a case.

> 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
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-6352.patch
>
>
> 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.3.4#6332)

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


Mime
View raw message