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
Term.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 TERM_H
8 #define TERM_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
20 class LPPAPI Term : public LuceneObject
21 {
22 public:
24 Term(const String& fld, const String& txt = EmptyString);
25 virtual ~Term();
26
27 LUCENE_CLASS(Term);
28
29 public:
30 String _field;
31 String _text;
32
33 public:
36 String field();
37
40 String text();
41
45 TermPtr createTerm(const String& text);
46
47 virtual bool equals(LuceneObjectPtr other);
48 virtual int32_t hashCode();
49
54 virtual int32_t compareTo(LuceneObjectPtr other);
55
56 void set(const String& fld, const String& txt);
57
58 virtual String toString();
59 };
60 }
61
62 #endif

clucene.sourceforge.net