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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ReqOptSumScorer.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 REQOPTSUMSCORER_H
8 #define REQOPTSUMSCORER_H
9
10 #include "Scorer.h"
11
12 namespace Lucene
13 {
16 class ReqOptSumScorer : public Scorer
17 {
18 public:
19 ReqOptSumScorer(ScorerPtr reqScorer, ScorerPtr optScorer);
20 virtual ~ReqOptSumScorer();
21
22 LUCENE_CLASS(ReqOptSumScorer);
23
24 protected:
25 ScorerPtr reqScorer;
26 ScorerPtr optScorer;
27
28 public:
29 virtual int32_t nextDoc();
30 virtual int32_t advance(int32_t target);
31 virtual int32_t docID();
32
37 virtual double score();
38 };
39 }
40
41 #endif

clucene.sourceforge.net