Lucene++ - a full-featured, c++ search engine
API Documentation


ConjunctionScorer.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef CONJUNCTIONSCORER_H
8 #define CONJUNCTIONSCORER_H
9 
10 #include "Scorer.h"
11 
12 namespace Lucene {
13 
15 class ConjunctionScorer : public Scorer {
16 public:
18  virtual ~ConjunctionScorer();
19 
21 
22 protected:
24  double coord;
25  int32_t lastDoc;
26 
27 public:
28  virtual int32_t advance(int32_t target);
29  virtual int32_t docID();
30  virtual int32_t nextDoc();
31  virtual double score();
32 
33 protected:
34  int32_t doNext();
35 };
36 
37 }
38 
39 #endif
Scorer.h
Lucene::ConjunctionScorer::nextDoc
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...
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::ConjunctionScorer::lastDoc
int32_t lastDoc
Definition: ConjunctionScorer.h:25
Lucene::Collection< ScorerPtr >
Lucene::ConjunctionScorer
Scorer for conjunctions, sets of queries, all of which are required.
Definition: ConjunctionScorer.h:15
Lucene::ConjunctionScorer::ConjunctionScorer
ConjunctionScorer(const SimilarityPtr &similarity, Collection< ScorerPtr > scorers)
Lucene::ConjunctionScorer::score
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until {} or #advanc...
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::ConjunctionScorer::coord
double coord
Definition: ConjunctionScorer.h:24
Lucene::Scorer
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
Lucene::ConjunctionScorer::~ConjunctionScorer
virtual ~ConjunctionScorer()
Lucene::Scorer::similarity
SimilarityPtr similarity
Definition: Scorer.h:29
Lucene::ConjunctionScorer::doNext
int32_t doNext()
Lucene::ConjunctionScorer::docID
virtual int32_t docID()
Returns the following:
Lucene::ConjunctionScorer::advance
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
Lucene::SimilarityPtr
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
Lucene::ConjunctionScorer::scorers
Collection< ScorerPtr > scorers
Definition: ConjunctionScorer.h:20

clucene.sourceforge.net