magoffin.matt.ma2.lucene
Class StandardMatteAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by magoffin.matt.ma2.lucene.StandardMatteAnalyzer

public class StandardMatteAnalyzer
extends org.apache.lucene.analysis.Analyzer

Standard implementation of Analyzer for Matte.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Constructor Summary
StandardMatteAnalyzer()
           
 
Method Summary
 int getIndexKeyLength()
           
 java.lang.String getSnowballStemmerName()
           
 java.util.Set<java.lang.String> getStopWords()
           
 void setIndexKeyLength(int indexKeyLength)
           
 void setSnowballStemmerName(java.lang.String snowballStemmerName)
           
 void setStopWords(java.util.Set<java.lang.String> stopWords)
           
 org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String field, java.io.Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardMatteAnalyzer

public StandardMatteAnalyzer()
Method Detail

tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String field,
                                                          java.io.Reader reader)
Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer

getSnowballStemmerName

public java.lang.String getSnowballStemmerName()
Returns:
the snowballStemmerName

setSnowballStemmerName

public void setSnowballStemmerName(java.lang.String snowballStemmerName)
Parameters:
snowballStemmerName - the snowballStemmerName to set

getStopWords

public java.util.Set<java.lang.String> getStopWords()
Returns:
the stopWords

setStopWords

public void setStopWords(java.util.Set<java.lang.String> stopWords)
Parameters:
stopWords - the stopWords to set

getIndexKeyLength

public int getIndexKeyLength()
Returns:
the indexKeyLength

setIndexKeyLength

public void setIndexKeyLength(int indexKeyLength)
Parameters:
indexKeyLength - the indexKeyLength to set