Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
23 Term(
const String& fld,
const String& txt = EmptyString);
55 void set(
const String& fld,
const String& txt);
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Term(const String &fld, const String &txt=EmptyString)
Constructs a Term with the given field and text.
A Term represents a word from text. This is the unit of search. It is composed of two elements,...
Definition: Term.h:20
TermPtr createTerm(const String &text)
Optimized construction of new Terms by reusing same field as this Term.
String _field
Definition: Term.h:26
String _text
Definition: Term.h:30
Definition: AbstractAllTermDocs.h:12
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Base class for all Lucene classes.
Definition: LuceneObject.h:31
virtual int32_t hashCode()
Return hash code for this object.
virtual int32_t compareTo(const LuceneObjectPtr &other)
Compares two terms, returning a negative integer if this term belongs before the argument,...
virtual String toString()
Returns a string representation of the object.
String field()
Returns the field of this term, an interned string. The field indicates the part of a document which ...
String text()
Returns the text of this term. In the case of words, this is simply the text of the word....
void set(const String &fld, const String &txt)
clucene.sourceforge.net