C# Class Lucene.Net.Analysis.El.GreekAnalyzer

Analyzer for the Greek language.

Supports an external list of stopwords (words that will not be indexed at all). A default set of stopwords is used unless an alternative list is specified.

You must specify the required Version compatibility when creating GreekAnalyzer:

  • As of 3.1, StandardFilter and GreekStemmer are used by default.
  • As of 2.9, StopFilter preserves position increments

NOTE: This class uses the same Version dependent settings as StandardAnalyzer.

Exibir arquivo 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.

GreekAnalyzer ( LuceneVersion matchVersion ) : Lucene.Net.Analysis.Core

Builds an analyzer with the default stop words.

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

Builds an analyzer with the given stop words.

NOTE: The stopwords set should be pre-processed with the logic of GreekLowerCaseFilter for best results.

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

GreekAnalyzer() public method

Builds an analyzer with the default stop words.
public GreekAnalyzer ( LuceneVersion matchVersion ) : Lucene.Net.Analysis.Core
matchVersion LuceneVersion Lucene compatibility version, /// See above
return Lucene.Net.Analysis.Core

GreekAnalyzer() public method

Builds an analyzer with the given stop words.

NOTE: The stopwords set should be pre-processed with the logic of GreekLowerCaseFilter for best results.

public GreekAnalyzer ( LuceneVersion matchVersion, CharArraySet stopwords ) : Lucene.Net.Analysis.Core
matchVersion LuceneVersion Lucene compatibility version, /// See above
stopwords CharArraySet a stopword set
return Lucene.Net.Analysis.Core