Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4239

Improve Stats to support stats.query, stats.ranges.

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuanyun.cn jefferyyuan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: