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

      • StatsSource

        public StatsSource()
    • Method Detail

      • 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