Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef POSITIVESCORESONLYCOLLECTOR_H
8 #define POSITIVESCORESONLYCOLLECTOR_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual void setScorer(const ScorerPtr &scorer)
Called before successive calls to collect(int32_t). Implementations that need the score of the curren...
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...
virtual void collect(int32_t doc)
Called once for every document matching a query, with the unbased document number.
Definition: AbstractAllTermDocs.h:12
CollectorPtr collector
Definition: PositiveScoresOnlyCollector.h:21
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
A Collector implementation which wraps another Collector and makes sure only documents with scores > ...
Definition: PositiveScoresOnlyCollector.h:16
virtual bool acceptsDocsOutOfOrder()
Return true if this collector does not require the matching docIDs to be delivered in int sort order ...
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
ScorerPtr scorer
Definition: PositiveScoresOnlyCollector.h:25
virtual ~PositiveScoresOnlyCollector()
PositiveScoresOnlyCollector(const CollectorPtr &c)
Collectors are primarily meant to be used to gather raw results from a search, and implement sorting ...
Definition: Collector.h:100
clucene.sourceforge.net