com.atlassian.confluence.search.didyoumean.lucene.analyzers
Class BodyNGramAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
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).
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 |
BodyNGramAnalyzer
public BodyNGramAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer