org.apache.solr.analysis
Class NGramFilterFactory

java.lang.Object
  extended by org.apache.solr.analysis.BaseTokenFilterFactory
      extended by org.apache.solr.analysis.NGramFilterFactory
All Implemented Interfaces:
TokenFilterFactory

public class NGramFilterFactory
extends BaseTokenFilterFactory

Creates new instances of NGramTokenFilter.


Field Summary
 
Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
args, log
 
Constructor Summary
NGramFilterFactory()
           
 
Method Summary
 NGramTokenFilter create(TokenStream input)
          Transform the specified input TokenStream
 void init(Map<String,String> args)
          Initialize the n-gram min and max sizes and the side from which one should start tokenizing.
 
Methods inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
getArgs, getBoolean, getBoolean, getInt, getInt, getInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NGramFilterFactory

public NGramFilterFactory()
Method Detail

init

public void init(Map<String,String> args)
Initialize the n-gram min and max sizes and the side from which one should start tokenizing.

Specified by:
init in interface TokenFilterFactory
Overrides:
init in class BaseTokenFilterFactory

create

public NGramTokenFilter create(TokenStream input)
Description copied from interface: TokenFilterFactory
Transform the specified input TokenStream



Copyright © 2010 Apache Software Foundation. All Rights Reserved.