Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef TOPSCOREDOCCOLLECTOR_H
8 #define TOPSCOREDOCCOLLECTOR_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
static TopScoreDocCollectorPtr create(int32_t numHits, bool docsScoredInOrder)
Creates a new TopScoreDocCollector given the number of hits to collect and whether documents are scor...
boost::weak_ptr< Scorer > ScorerWeakPtr
Definition: LuceneTypes.h:429
boost::shared_ptr< ScoreDoc > ScoreDocPtr
Definition: LuceneTypes.h:428
A base class for all collectors that return a TopDocs output. This collector allows easy extension by...
Definition: TopDocsCollector.h:21
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual void setNextReader(const IndexReaderPtr &reader, int32_t docBase)
Called before collecting from each IndexReader. All doc ids in collect(int32_t) will correspond to re...
TopScoreDocCollector(int32_t numHits)
virtual void setScorer(const ScorerPtr &scorer)
Called before successive calls to collect(int32_t). Implementations that need the score of the curren...
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
boost::shared_ptr< TopScoreDocCollector > TopScoreDocCollectorPtr
Definition: LuceneTypes.h:475
boost::shared_ptr< TopDocs > TopDocsPtr
Definition: LuceneTypes.h:471
int32_t docBase
Definition: TopScoreDocCollector.h:30
virtual ~TopScoreDocCollector()
virtual TopDocsPtr newTopDocs(Collection< ScoreDocPtr > results, int32_t start)
Returns a TopDocs instance containing the given results. If results is null it means there are no res...
A Collector implementation that collects the top-scoring hits, returning them as a TopDocs....
Definition: TopScoreDocCollector.h:21
ScorerWeakPtr _scorer
Definition: TopScoreDocCollector.h:31
clucene.sourceforge.net