Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef BOOLEANSCORER2_H
8 #define BOOLEANSCORER2_H
ScorerPtr makeCountingSumScorer()
Returns the scorer to be used for match counting and score summing. Uses requiredScorers,...
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until next() is call...
ScorerPtr countingDisjunctionSumScorer(Collection< ScorerPtr > scorers, int32_t minNrShouldMatch)
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
CoordinatorPtr coordinator
Definition: BooleanScorer2.h:114
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
ScorerPtr makeCountingSumScorerNoReq()
Definition: BooleanScorer2.h:125
BooleanScorer2WeakPtr _scorer
Definition: BooleanScorer2.h:150
virtual int32_t docID()
Returns the following:
CountingConjunctionSumScorer(const BooleanScorer2Ptr &scorer, const SimilarityPtr &similarity, Collection< ScorerPtr > scorers)
BooleanScorer2WeakPtr _scorer
Definition: BooleanScorer2.h:130
CoordinatorPtr coordinator
Definition: BooleanScorer2.h:44
ScorerPtr countingConjunctionSumScorer(Collection< ScorerPtr > requiredScorers)
int32_t minimumNrMatchers
The minimum number of scorers that should match.
Definition: DisjunctionSumScorer.h:31
virtual ~CountingConjunctionSumScorer()
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...
Collection< ScorerPtr > prohibitedScorers
Definition: BooleanScorer2.h:42
boost::weak_ptr< BooleanScorer2 > BooleanScorer2WeakPtr
Definition: LuceneTypes.h:282
Collection< ScorerPtr > optionalScorers
Definition: BooleanScorer2.h:41
Collection< ScorerPtr > requiredScorers
Definition: BooleanScorer2.h:37
int32_t lastScoredDoc
Definition: BooleanScorer2.h:154
Scorer for conjunctions, sets of queries, all of which are required.
Definition: ConjunctionScorer.h:15
virtual int32_t docID()
Returns the following:
Definition: BooleanScorer2.h:85
ScorerPtr dualConjunctionSumScorer(const ScorerPtr &req1, const ScorerPtr &req2)
virtual ~SingleMatchScorer()
int32_t maxCoord
Definition: BooleanScorer2.h:95
double lastDocScore
Definition: BooleanScorer2.h:137
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...
int32_t requiredNrMatchers
Definition: BooleanScorer2.h:155
Definition: AbstractAllTermDocs.h:12
ScorerPtr scorer
Definition: BooleanScorer2.h:110
double lastDocScore
Definition: BooleanScorer2.h:116
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Collection< ScorerPtr > subScorers
The subscorers.
Definition: DisjunctionSumScorer.h:28
BooleanScorer2(const SimilarityPtr &similarity, int32_t minNrShouldMatch, Collection< ScorerPtr > required, Collection< ScorerPtr > prohibited, Collection< ScorerPtr > optional)
Creates a Scorer with the given similarity and lists of required, prohibited and optional scorers....
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
ScorerPtr makeCountingSumScorerSomeReq()
int32_t nrMatchers
Definition: BooleanScorer2.h:96
CountingDisjunctionSumScorer(const BooleanScorer2Ptr &scorer, Collection< ScorerPtr > subScorers, int32_t minimumNrMatchers)
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
boost::shared_ptr< Coordinator > CoordinatorPtr
Definition: LuceneTypes.h:305
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
int32_t lastScoredDoc
Definition: BooleanScorer2.h:134
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
virtual ~CountingDisjunctionSumScorer()
Collection< double > coordFactors
Definition: BooleanScorer2.h:94
virtual ~BooleanScorer2()
int32_t minNrShouldMatch
Definition: BooleanScorer2.h:49
double lastDocScore
Definition: BooleanScorer2.h:158
Count a scorer as a single match.
Definition: BooleanScorer2.h:105
SimilarityPtr similarity
Definition: Scorer.h:29
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
boost::shared_ptr< BooleanScorer2 > BooleanScorer2Ptr
Definition: LuceneTypes.h:282
BooleanScorer2WeakPtr _scorer
Definition: BooleanScorer2.h:90
Definition: BooleanScorer2.h:145
A Scorer for OR like queries, counterpart of ConjunctionScorer. This Scorer implements {} and uses sk...
Definition: DisjunctionSumScorer.h:16
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
Coordinator(const BooleanScorer2Ptr &scorer)
int32_t lastScoredDoc
Definition: BooleanScorer2.h:115
Collection< ScorerPtr > scorers
Definition: ConjunctionScorer.h:20
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
virtual void score(const CollectorPtr &collector)
Scores and collects all matching documents.
int32_t doc
Definition: BooleanScorer2.h:50
ScorerPtr addProhibitedScorers(const ScorerPtr &requiredCountingSumScorer)
Returns the scorer to be used for match counting and score summing. Uses the given required scorer an...
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...
SingleMatchScorer(const ScorerPtr &scorer, const CoordinatorPtr &coordinator)
ScorerPtr countingSumScorer
The scorer to which all scoring will be delegated, except for computing and using the coordination fa...
Definition: BooleanScorer2.h:47
See the description in BooleanScorer, comparing BooleanScorer & BooleanScorer2.
Definition: BooleanScorer2.h:20
clucene.sourceforge.net