Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef DISJUNCTIONMAXSCORER_H
8 #define DISJUNCTIONMAXSCORER_H
void scoreAll(int32_t root, int32_t size, int32_t doc, Collection< double > sum, Collection< double > max)
Recursively iterate all subScorers that generated last doc computing sum and max.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
void heapRemoveRoot()
Remove the root Scorer from subScorers and re-establish it as a heap.
virtual ~DisjunctionMaxScorer()
void heapify()
Organize subScorers into a min heap with scorers generating the earliest document on top.
virtual double score()
Determine the current document score. Initially invalid, until next() is called the first time.
int32_t doc
Definition: DisjunctionMaxScorer.h:33
Definition: AbstractAllTermDocs.h:12
The Scorer for DisjunctionMaxQuery. The union of all documents generated by the the subquery scorers ...
Definition: DisjunctionMaxScorer.h:18
double tieBreakerMultiplier
Multiplier applied to non-maximum-scoring subqueries for a document as they are summed into the resul...
Definition: DisjunctionMaxScorer.h:31
Common scoring functionality for different types of queries.
Definition: Scorer.h:33
void heapAdjust(int32_t root)
The subtree of subScorers at root is a min heap except possibly for its root element....
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...
SimilarityPtr similarity
Definition: Scorer.h:45
int32_t numScorers
Definition: DisjunctionMaxScorer.h:28
virtual int32_t docID()
Returns the following:
Collection< ScorerPtr > subScorers
The scorers for subqueries that have remaining docs, kept as a min heap by number of next doc.
Definition: DisjunctionMaxScorer.h:23
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
DisjunctionMaxScorer(double tieBreakerMultiplier, const SimilarityPtr &similarity, Collection< ScorerPtr > subScorers, int32_t numScorers)
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
clucene.sourceforge.net