Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
FieldDoc.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 FIELDDOC_H
8
#define FIELDDOC_H
9
10
#include "
ScoreDoc.h
"
11
12
namespace
Lucene
{
13
20
class
LPPAPI
FieldDoc
:
public
ScoreDoc
{
21
public
:
22
FieldDoc
(int32_t
doc
,
double
score
,
Collection<ComparableValue>
fields
=
Collection<ComparableValue>
());
23
virtual
~FieldDoc
();
24
25
LUCENE_CLASS
(
FieldDoc
);
26
27
public
:
33
Collection<ComparableValue>
fields
;
34
35
public
:
36
virtual
String
toString
();
37
};
38
39
}
40
41
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
ScoreDoc.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::FieldDoc::toString
virtual String toString()
Returns a string representation of the object.
Lucene::FieldDoc::FieldDoc
FieldDoc(int32_t doc, double score, Collection< ComparableValue > fields=Collection< ComparableValue >())
Lucene::FieldDoc::fields
Collection< ComparableValue > fields
The values which are used to sort the referenced document. The order of these will match the original...
Definition
FieldDoc.h:33
Lucene::FieldDoc::~FieldDoc
virtual ~FieldDoc()
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
ScoreDoc(int32_t doc, double score)
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net