Class 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 Lucene
- 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 Lucene
Inherited Members
Namespace: Lucene.Net.Analysis.El
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class GreekAnalyzer : StopwordAnalyzerBase
Constructors
| Improve this Doc View SourceGreekAnalyzer(LuceneVersion)
Builds an analyzer with the default stop words.
Declaration
public GreekAnalyzer(LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
Lucene |
matchVersion | Lucene compatibility version,
See Lucene |
GreekAnalyzer(LuceneVersion, CharArraySet)
Builds an analyzer with the given stop words.
NOTE: The stopwords set should be pre-processed with the logic of
Greek
Declaration
public GreekAnalyzer(LuceneVersion matchVersion, CharArraySet stopwords)
Parameters
Type | Name | Description |
---|---|---|
Lucene |
matchVersion | Lucene compatibility version,
See Lucene |
Char |
stopwords | a stopword set |
Fields
| Improve this Doc View SourceDEFAULT_STOPWORD_FILE
File containing default Greek stopwords.
Declaration
public const string DEFAULT_STOPWORD_FILE = null
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourceDefaultStopSet
Returns a set of default Greek-stopwords
Declaration
public static CharArraySet DefaultStopSet { get; }
Property Value
Type | Description |
---|---|
Char |
a set of default Greek-stopwords |
Methods
| Improve this Doc View SourceCreateComponents(String, TextReader)
Creates
Token
Declaration
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
System. |
fieldName | |
Text |
reader |
Returns
Type | Description |
---|---|
Token |
Token |