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

Loading...
Searching...
No Matches
ConjunctionScorer.h
Go to the documentation of this file.
1
2// 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:
17 ConjunctionScorer(const SimilarityPtr& similarity, Collection<ScorerPtr> scorers);
18 virtual ~ConjunctionScorer();
19
20 LUCENE_CLASS(ConjunctionScorer);
21
22 protected:
23 Collection<ScorerPtr> scorers;
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
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Scorer.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::ConjunctionScorer::scorers
Collection< ScorerPtr > scorers
Definition ConjunctionScorer.h:23
Lucene::ConjunctionScorer::~ConjunctionScorer
virtual ~ConjunctionScorer()
Lucene::ConjunctionScorer::lastDoc
int32_t lastDoc
Definition ConjunctionScorer.h:25
Lucene::ConjunctionScorer::docID
virtual int32_t docID()
Returns the following:
Lucene::ConjunctionScorer::ConjunctionScorer
ConjunctionScorer(const SimilarityPtr &similarity, Collection< ScorerPtr > scorers)
Lucene::ConjunctionScorer::coord
double coord
Definition ConjunctionScorer.h:24
Lucene::ConjunctionScorer::score
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until nextDoc() or a...
Lucene::ConjunctionScorer::doNext
int32_t doNext()
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::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::Scorer::similarity
SimilarityPtr similarity
Definition Scorer.h:45
Lucene::Scorer::Scorer
Scorer(const SimilarityPtr &similarity)
Constructs a Scorer.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::SimilarityPtr
boost::shared_ptr< Similarity > SimilarityPtr
Definition LuceneTypes.h:435

clucene.sourceforge.net