Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
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();
}