Package org.apache.solr.search.stats
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 createWeight
from aQuery
, that isTermStatistics
for a term andCollectionStatistics
for the whole collection.
-
-
Constructor Summary
Constructors Constructor Description StatsSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.apache.lucene.search.CollectionStatistics
collectionStatistics(SolrIndexSearcher localSearcher, String field)
abstract org.apache.lucene.search.TermStatistics
termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq)
-
-
-
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
-
collectionStatistics
public abstract org.apache.lucene.search.CollectionStatistics collectionStatistics(SolrIndexSearcher localSearcher, String field) throws IOException
- Throws:
IOException
-
-