Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef BOOLEANSCORER_H
8 #define BOOLEANSCORER_H
virtual int32_t docID()
Returns the following:
ScorerPtr scorer
Definition: BooleanScorer.h:151
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
SubScorerPtr scorers
Definition: BooleanScorer.h:35
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
Collection< double > coordFactors
Definition: BooleanScorer.h:42
Definition: BooleanScorer.h:111
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...
boost::weak_ptr< Scorer > ScorerWeakPtr
Definition: LuceneTypes.h:429
boost::weak_ptr< Bucket > BucketWeakPtr
Definition: LuceneTypes.h:284
int32_t doc
Definition: BooleanScorer.h:49
double _score
Definition: BooleanScorer.h:101
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...
BucketPtr current
Definition: BooleanScorer.h:48
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
int32_t coord
Definition: BooleanScorer.h:122
BooleanScorer uses a ~16k array to score windows of docs. So it scores docs 0-16k first,...
Definition: BooleanScorer.h:30
static const int32_t SIZE
Definition: BooleanScorer.h:132
boost::shared_ptr< Bucket > BucketPtr
Definition: LuceneTypes.h:284
virtual ~BooleanScorerCollector()
bool required
Definition: BooleanScorer.h:155
boost::weak_ptr< BucketTable > BucketTableWeakPtr
Definition: LuceneTypes.h:286
virtual bool acceptsDocsOutOfOrder()
Return true if this collector does not require the matching docIDs to be delivered in int sort order ...
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...
Definition: AbstractAllTermDocs.h:12
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
virtual int32_t docID()
Returns the following:
virtual String toString()
Returns a string representation of the object.
SubScorer(const ScorerPtr &scorer, bool required, bool prohibited, const CollectorPtr &collector, const SubScorerPtr &next)
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: BooleanScorer.h:87
Definition: BooleanScorer.h:146
boost::shared_ptr< SubScorer > SubScorerPtr
Definition: LuceneTypes.h:462
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual void collect(int32_t doc)
Called once for every document matching a query, with the unbased document number.
BucketPtr first
Definition: BooleanScorer.h:139
float termFreq()
Definition: BooleanScorer.h:95
CollectorPtr newCollector(int32_t mask)
Common scoring functionality for different types of queries.
Definition: Scorer.h:33
SubScorerPtr next
Definition: BooleanScorer.h:158
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
int32_t doc
Definition: BooleanScorer.h:116
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
int32_t bits
Definition: BooleanScorer.h:121
int32_t requiredMask
Definition: BooleanScorer.h:43
int32_t doc
Definition: BooleanScorer.h:102
virtual void score(const CollectorPtr &collector)
Scores and collects all matching documents.
BucketWeakPtr _next
Definition: BooleanScorer.h:123
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
BucketTablePtr bucketTable
Definition: BooleanScorer.h:40
bool prohibited
Definition: BooleanScorer.h:156
int32_t mask
Definition: BooleanScorer.h:74
CollectorPtr collector
Definition: BooleanScorer.h:157
BooleanScorerCollector(int32_t mask, const BucketTablePtr &bucketTable)
BooleanScorer(const SimilarityPtr &similarity, int32_t minNrShouldMatch, Collection< ScorerPtr > optionalScorers, Collection< ScorerPtr > prohibitedScorers)
static const int32_t MASK
Definition: BooleanScorer.h:136
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...
int32_t nextMask
Definition: BooleanScorer.h:45
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
int32_t prohibitedMask
Definition: BooleanScorer.h:44
Definition: BooleanScorer.h:65
int32_t minNrShouldMatch
Definition: BooleanScorer.h:46
double score
Definition: BooleanScorer.h:120
Collection< BucketPtr > buckets
Definition: BooleanScorer.h:138
int32_t maxCoord
Definition: BooleanScorer.h:41
A simple hash table of document scores within a range.
Definition: BooleanScorer.h:127
BucketTableWeakPtr _bucketTable
Definition: BooleanScorer.h:70
int32_t freq
Definition: BooleanScorer.h:93
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< BucketTable > BucketTablePtr
Definition: LuceneTypes.h:286
int32_t end
Definition: BooleanScorer.h:47
ScorerWeakPtr _scorer
Definition: BooleanScorer.h:75
Collectors are primarily meant to be used to gather raw results from a search, and implement sorting ...
Definition: Collector.h:100
clucene.sourceforge.net