Class MorfologikAnalyzer
Lucene.Net.Analysis.Analyzer using Morfologik library.
See: Morfologik project pageImplements
Inherited Members
Analyzer.Strategy
Analyzer.Dispose()
Analyzer.GLOBAL_REUSE_STRATEGY
Analyzer.PER_FIELD_REUSE_STRATEGY
Namespace: Lucene.Net.Analysis.Morfologik
Assembly: Lucene.Net.Analysis.Morfologik.dll
Syntax
public class MorfologikAnalyzer : Analyzer, IDisposable
Constructors
MorfologikAnalyzer(LuceneVersion)
Builds an analyzer with the default Morfologik's Polish dictionary.
Declaration
public MorfologikAnalyzer(LuceneVersion version)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | Lucene compatibility version |
MorfologikAnalyzer(LuceneVersion, Dictionary)
Builds an analyzer with an explicit Morfologik.Stemming.Dictionary resource.
See: https://github.com/morfologik/Declaration
public MorfologikAnalyzer(LuceneVersion version, Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | Lucene compatibility version |
Dictionary | dictionary | A prebuilt automaton with inflected and base word forms. |
Methods
CreateComponents(string, TextReader)
Creates a Lucene.Net.Analysis.TokenStreamComponents
which tokenizes all the text in the provided reader
.
Declaration
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | Ignored field name. |
TextReader | reader | Source of tokens. |
Returns
Type | Description |
---|---|
TokenStreamComponents | A Lucene.Net.Analysis.TokenStreamComponents built from a Lucene.Net.Analysis.Standard.StandardTokenizer filtered with MorfologikFilter. |