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

Loading...
Searching...
No Matches
ScoreDoc.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 SCOREDOC_H
8#define SCOREDOC_H
9
10#include "LuceneObject.h"
11
12 namespace Lucene {
13
16 class LPPAPI ScoreDoc : public LuceneObject {
17 public:
18 ScoreDoc(int32_t doc, double score);
19 virtual ~ScoreDoc();
20
21 LUCENE_CLASS(ScoreDoc);
22
23 public:
25 double score;
26
29 int32_t doc;
30
31 public:
32 virtual String toString();
33};
34
35}
36
37#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene::ScoreDoc::toString
virtual String toString()
Returns a string representation of the object.
Lucene::ScoreDoc::doc
int32_t doc
A hit document's number.
Definition ScoreDoc.h:29
Lucene::ScoreDoc::score
double score
The score of this document for the query.
Definition ScoreDoc.h:25
Lucene::ScoreDoc::~ScoreDoc
virtual ~ScoreDoc()
Lucene::ScoreDoc::ScoreDoc
ScoreDoc(int32_t doc, double score)
Lucene
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net