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
12namespace Lucene {
13
15class ConjunctionScorer : public Scorer {
16public:
19
21
22protected:
24 double coord;
25 int32_t lastDoc;
26
27public:
28 virtual int32_t advance(int32_t target);
29 virtual int32_t docID();
30 virtual int32_t nextDoc();
31 virtual double score();
32
33protected:
34 int32_t doNext();
35};
36
37}
38
39#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Scorer for conjunctions, sets of queries, all of which are required.
Definition ConjunctionScorer.h:15
Collection< ScorerPtr > scorers
Definition ConjunctionScorer.h:23
int32_t lastDoc
Definition ConjunctionScorer.h:25
virtual int32_t docID()
Returns the following:
ConjunctionScorer(const SimilarityPtr &similarity, Collection< ScorerPtr > scorers)
double coord
Definition ConjunctionScorer.h:24
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until nextDoc() or a...
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
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...
Common scoring functionality for different types of queries.
Definition Scorer.h:33
SimilarityPtr similarity
Definition Scorer.h:45
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Similarity > SimilarityPtr
Definition LuceneTypes.h:435

clucene.sourceforge.net