org.apache.lucene.analysis.morfologik
Class MorfologikAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.morfologik.MorfologikAnalyzer
- All Implemented Interfaces:
- Closeable
public class MorfologikAnalyzer
- extends Analyzer
Analyzer
using Morfologik library.
- See Also:
- Morfologik project page
Constructor Summary |
MorfologikAnalyzer(Version vers)
Builds an analyzer for an original MORFOLOGIK dictionary. |
MorfologikAnalyzer(Version vers,
morfologik.stemming.PolishStemmer.DICTIONARY dict)
Builds an analyzer for a given PolishStemmer.DICTIONARY enum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MorfologikAnalyzer
public MorfologikAnalyzer(Version vers,
morfologik.stemming.PolishStemmer.DICTIONARY dict)
- Builds an analyzer for a given PolishStemmer.DICTIONARY enum.
- Parameters:
vers
- lucene compatibility versiondict
- A constant specifying which dictionary to choose. See the
Morfologik documentation for details or use the default.
MorfologikAnalyzer
public MorfologikAnalyzer(Version vers)
- Builds an analyzer for an original MORFOLOGIK dictionary.
- Parameters:
vers
- lucene compatibility version
createComponents
protected Analyzer.TokenStreamComponents createComponents(String field,
Reader reader)
- Creates a
Analyzer.TokenStreamComponents
which tokenizes all the text in the provided Reader
.
- Specified by:
createComponents
in class Analyzer
- Parameters:
field
- ignored field namereader
- source of tokens
- Returns:
- A
Analyzer.TokenStreamComponents
built from an StandardTokenizer
filtered with
StandardFilter
and MorfologikFilter
.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.