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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TopDocs.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 TOPDOCS_H
8 #define TOPDOCS_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI TopDocs : public LuceneObject {
17 public:
19  TopDocs(int32_t totalHits, Collection<ScoreDocPtr> scoreDocs);
20 
22  TopDocs(int32_t totalHits, Collection<ScoreDocPtr> scoreDocs, double maxScore);
23 
24  virtual ~TopDocs();
25 
27 
28 public:
30  int32_t totalHits;
31 
34 
36  double maxScore;
37 
38 public:
41  double getMaxScore();
42 
44  void setMaxScore(double maxScore);
45 };
46 
47 }
48 
49 #endif

clucene.sourceforge.net