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 for conjunctions, sets of queries, all of which are required.
Definition: ConjunctionScorer.h:15
virtual int32_t docID()
Returns the following:
SimilarityPtr similarity
Definition: Scorer.h:29
int32_t lastDoc
Definition: ConjunctionScorer.h:25
ConjunctionScorer(const SimilarityPtr &similarity, Collection< ScorerPtr > scorers)
double coord
Definition: ConjunctionScorer.h:24
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
Collection< ScorerPtr > scorers
Definition: ConjunctionScorer.h:20
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target...
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until nextDoc() or a...
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...

clucene.sourceforge.net