Class StatsSource

java.lang.Object
org.apache.solr.search.stats.StatsSource
Direct Known Subclasses:
ExactStatsCache.ExactStatsSource, LocalStatsSource

public abstract class StatsSource extends Object
The purpose of this class is only to provide two pieces of information necessary to create Weight from a Query, that is TermStatistics for a term and CollectionStatistics for the whole collection.
  • Constructor Details

    • StatsSource

      public StatsSource()
  • Method Details

    • termStatistics

      public abstract org.apache.lucene.search.TermStatistics termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq) throws IOException
      Throws:
      IOException
    • collectionStatistics

      public abstract org.apache.lucene.search.CollectionStatistics collectionStatistics(SolrIndexSearcher localSearcher, String field) throws IOException
      Throws:
      IOException