org.apache.lucene.analysis.morfologik
Class MorfologikAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.morfologik.MorfologikAnalyzer
All Implemented Interfaces:
Closeable

public class MorfologikAnalyzer
extends Analyzer

Analyzer using Morfologik library.

See Also:
Morfologik project page

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
 
Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
 
Constructor Summary
MorfologikAnalyzer(Version version)
          Builds an analyzer with the default Morfologik's dictionary (polimorf).
 
Method Summary
protected  Analyzer.TokenStreamComponents createComponents(String field, Reader reader)
          Creates a Analyzer.TokenStreamComponents which tokenizes all the text in the provided Reader.
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, initReader, tokenStream, tokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorfologikAnalyzer

public MorfologikAnalyzer(Version version)
Builds an analyzer with the default Morfologik's dictionary (polimorf).

Parameters:
version - Lucene compatibility version
Method Detail

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 name
reader - source of tokens
Returns:
A Analyzer.TokenStreamComponents built from an StandardTokenizer filtered with StandardFilter and MorfologikFilter.


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.