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
TopDocs.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 TOPDOCS_H
8 #define TOPDOCS_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
16 class LPPAPI TopDocs : public LuceneObject
17 {
18 public:
20 TopDocs(int32_t totalHits, Collection<ScoreDocPtr> scoreDocs);
21
23 TopDocs(int32_t totalHits, Collection<ScoreDocPtr> scoreDocs, double maxScore);
24
25 virtual ~TopDocs();
26
27 LUCENE_CLASS(TopDocs);
28
29 public:
31 int32_t totalHits;
32
34 Collection<ScoreDocPtr> scoreDocs;
35
37 double maxScore;
38
39 public:
42 double getMaxScore();
43
45 void setMaxScore(double maxScore);
46 };
47 }
48
49 #endif

clucene.sourceforge.net