You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:55:35 UTC

[jira] [Updated] (SOLR-4239) Improve Stats to support stats.query, stats.ranges.

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

David Smiley updated SOLR-4239:
-------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> Improve Stats to support stats.query, stats.ranges. 
> ----------------------------------------------------
>
>                 Key: SOLR-4239
>                 URL: https://issues.apache.org/jira/browse/SOLR-4239
>             Project: Solr
>          Issue Type: Improvement
>          Components: SearchComponents - other
>            Reporter: yuanyun.cn
>            Priority: Minor
>              Labels: search, stats
>             Fix For: 4.8
>
>
> Statistics is very useful and important to enterprise applications. So can we extend stats component in Solr to support stats.query, stats.ranges?
> The implantation should be easy, in org.apache.solr.handler.component.SimpleStats.getStatsFields():
> for(String query: queries)
> {
> 	DocSet docSet = searcher.getDocSet(query);
> 	DocSet interSection = docs.intersection(docSet);
> 	NamedList<Object> stv = (NamedList<Object>) uif.getStats(searcher, interSection, facets).getStatsValues();
> }



--
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