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
Document.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 DOCUMENT_H
8 #define DOCUMENT_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
24 class LPPAPI Document : public LuceneObject
25 {
26 public:
28 Document();
29
30 virtual ~Document();
31
32 LUCENE_CLASS(Document);
33
34 protected:
35 Collection<FieldablePtr> fields;
36 double boost;
37
38 public:
48 void setBoost(double boost);
49
59 double getBoost();
60
67 void add(FieldablePtr field);
68
76 void removeField(const String& name);
77
84 void removeFields(const String& name);
85
89 FieldPtr getField(const String& name);
90
93 FieldablePtr getFieldable(const String& name);
94
98 String get(const String& name);
99
104 Collection<FieldablePtr> getFields();
105
110 Collection<FieldPtr> getFields(const String& name);
111
116 Collection<FieldablePtr> getFieldables(const String& name);
117
122 Collection<String> getValues(const String& name);
123
128 Collection<ByteArray> getBinaryValues(const String& name);
129
135 ByteArray getBinaryValue(const String& name);
136
138 virtual String toString();
139 };
140 }
141
142 #endif

clucene.sourceforge.net