com.atlassian.confluence.search.didyoumean.lucene.analyzers
Class BodyNGramAnalyzer

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

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

Analyzer that produces body n-gram tokens from the given input. Body n-grams do not include edge n-grams (that is the n-grams at the start and the end of the word).


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
BodyNGramAnalyzer()
           
 
Method Summary
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, 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

BodyNGramAnalyzer

public BodyNGramAnalyzer()
Method Detail

tokenStream

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.