Class BodyNGramAnalyzer

  extended by org.apache.lucene.analysis.Analyzer
      extended by

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
Constructor Summary
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


public BodyNGramAnalyzer()
Method Detail


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

Copyright © 2003-2012 Atlassian. All Rights Reserved.