Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef PERFIELDANALYZERWRAPPER_H
8 #define PERFIELDANALYZERWRAPPER_H
An Analyzer builds TokenStreams, which analyze text. It thus represents a policy for extracting index...
Definition: Analyzer.h:19
AnalyzerPtr defaultAnalyzer
Definition: PerFieldAnalyzerWrapper.h:43
MapStringAnalyzer analyzerMap
Definition: PerFieldAnalyzerWrapper.h:47
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual TokenStreamPtr reusableTokenStream(const String &fieldName, const ReaderPtr &reader)
Creates a TokenStream that is allowed to be re-used from the previous time that the same thread calle...
virtual int32_t getOffsetGap(const FieldablePtr &field)
Return the offsetGap from the analyzer assigned to field.
This analyzer is used to facilitate scenarios where different fields require different analysis techn...
Definition: PerFieldAnalyzerWrapper.h:29
boost::shared_ptr< Reader > ReaderPtr
Definition: LuceneTypes.h:547
boost::shared_ptr< Analyzer > AnalyzerPtr
Definition: LuceneTypes.h:20
virtual ~PerFieldAnalyzerWrapper()
virtual String toString()
Returns a string representation of the object.
Definition: AbstractAllTermDocs.h:12
virtual TokenStreamPtr tokenStream(const String &fieldName, const ReaderPtr &reader)
Creates a TokenStream which tokenizes all the text in the provided Reader. Must be able to handle nul...
void addAnalyzer(const String &fieldName, const AnalyzerPtr &analyzer)
Defines an analyzer to use for the specified field.
PerFieldAnalyzerWrapper(const AnalyzerPtr &defaultAnalyzer)
Constructs with default analyzer.
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
virtual int32_t getPositionIncrementGap(const String &fieldName)
Return the positionIncrementGap from the analyzer assigned to fieldName.
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
PerFieldAnalyzerWrapper(const AnalyzerPtr &defaultAnalyzer, MapStringAnalyzer fieldAnalyzers)
Constructs with default analyzer and a map of analyzers to use for specific fields.
clucene.sourceforge.net