CLucene - a full-featured, c++ search engine
API Documentation
#include <AnalysisHeader.h>".
Set the position increment.
This determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.
The default value is 1.
Some common uses for this are:
Returns this Token's starting offset, the position of the first character corresponding to this token in the source text.
Note that the difference between endOffset() and startOffset() may not be equal to termText.length(), as the term text may have been altered by a stemmer or some other filter.
Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text.
Returns this Token's lexical type. Defaults to "word".
returns reference
returns reference
the text of the term
the length of termText. Internal use only
clucene.sourceforge.net