Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef SCORECACHINGWRAPPINGSCORER_H
8 #define SCORECACHINGWRAPPINGSCORER_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
ScorerWeakPtr _scorer
Definition: ScoreCachingWrappingScorer.h:28
virtual int32_t docID()
Returns the following:
boost::weak_ptr< Scorer > ScorerWeakPtr
Definition: LuceneTypes.h:429
A Scorer which wraps another scorer and caches the score of the current document. Successive calls to...
Definition: ScoreCachingWrappingScorer.h:22
virtual void score(const CollectorPtr &collector)
Scores and collects all matching documents.
virtual int32_t nextDoc()
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if t...
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
double curScore
Definition: ScoreCachingWrappingScorer.h:33
Definition: AbstractAllTermDocs.h:12
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
int32_t curDoc
Definition: ScoreCachingWrappingScorer.h:32
virtual bool score(const CollectorPtr &collector, int32_t max, int32_t firstDocID)
Collects matching documents in a range. Hook for optimization. Note, firstDocID is added to ensure th...
ScoreCachingWrappingScorer(const ScorerPtr &scorer)
Creates a new instance by wrapping the given scorer.
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
virtual ~ScoreCachingWrappingScorer()
SimilarityPtr getSimilarity()
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
clucene.sourceforge.net