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

yuanyun.cn updated SOLR-4239:
-----------------------------

    Description: 
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();
}

  was:
Statistics is very useful and import 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();
}

    
> 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.1
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to