C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CreateComponents() публичный Метод

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
Результат TokenStreamComponents

GreekAnalyzer() публичный Метод

Builds an analyzer with the default stop words.
public GreekAnalyzer ( LuceneVersion matchVersion ) : Lucene.Net.Analysis.Core
matchVersion LuceneVersion Lucene compatibility version, /// See above
Результат Lucene.Net.Analysis.Core

GreekAnalyzer() публичный Метод

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
Результат Lucene.Net.Analysis.Core