C# Class Lucene.Net.Analysis.De.GermanAnalyzer

Analyzer for German language. Supports an external list of stopwords (words that will not be indexed at all) and an external list of exclusions (word that will not be stemmed, but indexed). A default set of stopwords is used unless an alternative list is specified, the exclusion list is empty by default.
Inheritance: Lucene.Net.Analysis.Analyzer
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CreateComponents ( string fieldName, TextReader reader ) : TokenStreamComponents

Creates org.apache.lucene.analysis.Analyzer.TokenStreamComponents used to tokenize all the text in the provided Reader.

GermanAnalyzer ( LuceneVersion matchVersion ) : Lucene.Net.Analysis

Builds an analyzer with the default stop words: #getDefaultStopSet().

GermanAnalyzer ( LuceneVersion matchVersion, Lucene.Net.Analysis.CharArraySet stopwords ) : Lucene.Net.Analysis

Builds an analyzer with the given stop words

GermanAnalyzer ( LuceneVersion matchVersion, Lucene.Net.Analysis.CharArraySet stopwords, Lucene.Net.Analysis.CharArraySet stemExclusionSet ) : Lucene.Net.Analysis

Builds an analyzer with the given stop words

Method Details

CreateComponents() public method

Creates org.apache.lucene.analysis.Analyzer.TokenStreamComponents used to tokenize all the text in the provided Reader.
public CreateComponents ( string fieldName, TextReader reader ) : TokenStreamComponents
fieldName string
reader System.IO.TextReader
return TokenStreamComponents

GermanAnalyzer() public method

Builds an analyzer with the default stop words: #getDefaultStopSet().
public GermanAnalyzer ( LuceneVersion matchVersion ) : Lucene.Net.Analysis
matchVersion LuceneVersion
return Lucene.Net.Analysis

GermanAnalyzer() public method

Builds an analyzer with the given stop words
public GermanAnalyzer ( LuceneVersion matchVersion, Lucene.Net.Analysis.CharArraySet stopwords ) : Lucene.Net.Analysis
matchVersion LuceneVersion /// lucene compatibility version
stopwords Lucene.Net.Analysis.CharArraySet /// a stopword set
return Lucene.Net.Analysis

GermanAnalyzer() public method

Builds an analyzer with the given stop words
public GermanAnalyzer ( LuceneVersion matchVersion, Lucene.Net.Analysis.CharArraySet stopwords, Lucene.Net.Analysis.CharArraySet stemExclusionSet ) : Lucene.Net.Analysis
matchVersion LuceneVersion /// lucene compatibility version
stopwords Lucene.Net.Analysis.CharArraySet /// a stopword set
stemExclusionSet Lucene.Net.Analysis.CharArraySet /// a stemming exclusion set
return Lucene.Net.Analysis