public class EdgeNGramTokenizer extends NGramTokenizer
 This Tokenizer create n-grams from the beginning edge or ending edge of a input token.
 
As of Lucene 4.4, this tokenizer
maxGram larger than 1024 chars, but beware that this will result in increased memory usage
 pre-tokenization,
 Although highly discouraged, it is still possible
 to use the old behavior through Lucene43EdgeNGramTokenizer.
AttributeSource.State| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_MAX_GRAM_SIZE  | 
static int | 
DEFAULT_MIN_GRAM_SIZE  | 
DEFAULT_MAX_NGRAM_SIZE, DEFAULT_MIN_NGRAM_SIZEDEFAULT_TOKEN_ATTRIBUTE_FACTORYDEFAULT_ATTRIBUTE_FACTORY| Constructor and Description | 
|---|
EdgeNGramTokenizer(AttributeFactory factory,
                  Reader input,
                  int minGram,
                  int maxGram)
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range 
 | 
EdgeNGramTokenizer(Reader input,
                  int minGram,
                  int maxGram)
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range 
 | 
EdgeNGramTokenizer(Version version,
                  AttributeFactory factory,
                  Reader input,
                  int minGram,
                  int maxGram)
Deprecated. 
 
 | 
EdgeNGramTokenizer(Version version,
                  Reader input,
                  int minGram,
                  int maxGram)
Deprecated. 
 
 | 
end, incrementToken, isTokenChar, resetclose, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic static final int DEFAULT_MAX_GRAM_SIZE
public static final int DEFAULT_MIN_GRAM_SIZE
public EdgeNGramTokenizer(Reader input, int minGram, int maxGram)
input - Reader holding the input to be tokenizedminGram - the smallest n-gram to generatemaxGram - the largest n-gram to generate@Deprecated public EdgeNGramTokenizer(Version version, Reader input, int minGram, int maxGram)
EdgeNGramTokenizer(Reader, int, int)public EdgeNGramTokenizer(AttributeFactory factory, Reader input, int minGram, int maxGram)
factory - AttributeFactory to useinput - Reader holding the input to be tokenizedminGram - the smallest n-gram to generatemaxGram - the largest n-gram to generate@Deprecated public EdgeNGramTokenizer(Version version, AttributeFactory factory, Reader input, int minGram, int maxGram)
EdgeNGramTokenizer(AttributeFactory, Reader, int, int)Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.