com.atlassian.confluence.search.didyoumean.lucene
Class UnstemmedEnglishAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by com.atlassian.confluence.search.didyoumean.lucene.UnstemmedEnglishAnalyzer

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

English analyzer that does a similar job to EnglishAnalyzer but does not break tokens down to their word stems/roots. That is, the original word forms are preserved to accommodate extraction of words for adding to the "Did You Mean" dictionary.


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
UnstemmedEnglishAnalyzer()
           
 
Method Summary
 org.apache.lucene.analysis.TokenStream tokenStream(String string, Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnstemmedEnglishAnalyzer

public UnstemmedEnglishAnalyzer()
Method Detail

tokenStream

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.