Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
45 virtual int32_t
docID();
53 virtual double score();
59 virtual int32_t
advance(int32_t target);
67 virtual bool score(
const CollectorPtr& collector, int32_t max, int32_t firstDocID);
static const int32_t SCORE_CACHE_SIZE
Definition: TermScorer.h:40
virtual int32_t docID()
Returns the following:
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual int32_t advance(int32_t target)
Advances to the first match beyond the current whose document number is greater than or equal to a gi...
int32_t pointer
Definition: TermScorer.h:37
int32_t pointerMax
Definition: TermScorer.h:38
Collection< double > scoreCache
Definition: TermScorer.h:41
int32_t doc
Definition: TermScorer.h:33
Definition: AbstractAllTermDocs.h:12
static const Collection< double > SIM_NORM_DECODER()
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
double weightValue
Definition: TermScorer.h:32
virtual String toString()
Returns a string representation of this TermScorer.
boost::shared_ptr< TermDocs > TermDocsPtr
Definition: LuceneTypes.h:236
virtual int32_t nextDoc()
Advances to the next document matching the query. The iterator over the matching documents is buffere...
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
TermScorer(const WeightPtr &weight, const TermDocsPtr &td, const SimilarityPtr &similarity, ByteArray norms)
Construct a TermScorer.
Collection< int32_t > freqs
Definition: TermScorer.h:36
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
TermDocsPtr termDocs
Definition: TermScorer.h:30
SimilarityPtr similarity
Definition: Scorer.h:29
WeightPtr weight
Definition: TermScorer.h:26
A Scorer for documents matching a Term.
Definition: TermScorer.h:15
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
ByteArray norms
Definition: TermScorer.h:31
Collection< int32_t > docs
Definition: TermScorer.h:35
clucene.sourceforge.net