Class ThaiAnalyzer

  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.ReusableAnalyzerBase
          extended by
All Implemented Interfaces:

public final class ThaiAnalyzer
extends ReusableAnalyzerBase

Analyzer for Thai language. It uses BreakIterator to break words.


NOTE: This class uses the same Version dependent settings as StandardAnalyzer.

Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.analysis.ReusableAnalyzerBase
Constructor Summary
ThaiAnalyzer(Version matchVersion)
Method Summary
protected  ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName, Reader reader)
          Creates ReusableAnalyzerBase.TokenStreamComponents used to tokenize all the text in the provided Reader.
Methods inherited from class org.apache.lucene.analysis.ReusableAnalyzerBase
initReader, reusableTokenStream, tokenStream
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ThaiAnalyzer(Version matchVersion)
Method Detail


protected ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName,
                                                                      Reader reader)
Creates ReusableAnalyzerBase.TokenStreamComponents used to tokenize all the text in the provided Reader.

Specified by:
createComponents in class ReusableAnalyzerBase
fieldName - the name of the fields content passed to the ReusableAnalyzerBase.TokenStreamComponents sink as a reader
reader - the reader passed to the Tokenizer constructor
ReusableAnalyzerBase.TokenStreamComponents built from a StandardTokenizer filtered with StandardFilter, LowerCaseFilter, ThaiWordFilter, and StopFilter

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