org.apache.solr.analysis
Class NGramTokenizerFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenizerFactory
org.apache.solr.analysis.NGramTokenizerFactory
- All Implemented Interfaces:
- TokenizerFactory
public class NGramTokenizerFactory
- extends BaseTokenizerFactory
Creates new instances of NGramTokenizer
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NGramTokenizerFactory
public NGramTokenizerFactory()
init
public void init(Map<String,String> args)
- Initializes the n-gram min and max sizes and the side from which one should start tokenizing.
- Specified by:
init
in interface TokenizerFactory
- Overrides:
init
in class BaseTokenizerFactory
create
public NGramTokenizer create(Reader input)
- Creates the
TokenStream
of n-grams from the given Reader
.
Copyright © 2010 Apache Software Foundation. All Rights Reserved.