org.apache.solr.analysis
Class NGramTokenizerFactory

java.lang.Object
  extended by org.apache.solr.analysis.BaseTokenizerFactory
      extended by org.apache.solr.analysis.NGramTokenizerFactory
All Implemented Interfaces:
TokenizerFactory

public class NGramTokenizerFactory
extends BaseTokenizerFactory

Creates new instances of NGramTokenizer.


Field Summary
 
Fields inherited from class org.apache.solr.analysis.BaseTokenizerFactory
args, log
 
Constructor Summary
NGramTokenizerFactory()
           
 
Method Summary
 NGramTokenizer create(Reader input)
          Creates the TokenStream of n-grams from the given Reader.
 void init(Map<String,String> args)
          Initializes the n-gram min and max sizes and the side from which one should start tokenizing.
 
Methods inherited from class org.apache.solr.analysis.BaseTokenizerFactory
getArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NGramTokenizerFactory

public NGramTokenizerFactory()
Method Detail

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 © 2011 Apache Software Foundation. All Rights Reserved.