Package org.apache.solr.search.stats
Class StatsSource
java.lang.Object
org.apache.solr.search.stats.StatsSource
- Direct Known Subclasses:
ExactStatsCache.ExactStatsSource,LocalStatsSource
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.lucene.search.CollectionStatisticscollectionStatistics(SolrIndexSearcher localSearcher, String field) abstract org.apache.lucene.search.TermStatisticstermStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq)
-
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
-