org.apache.solr.analysis
Class LengthFilterFactory

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

public class LengthFilterFactory
extends BaseTokenFilterFactory

Version:
$Id: LengthFilterFactory.java 643465 2008-04-01 16:10:19Z gsingers $

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> args
          The init args
protected  org.apache.lucene.util.Version luceneMatchVersion
          the luceneVersion arg
static java.lang.String MAX_KEY
           
static java.lang.String MIN_KEY
           
 
Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
log
 
Constructor Summary
LengthFilterFactory()
           
 
Method Summary
protected  void assureMatchVersion()
          this method can be called in the #create method, to inform user, that for this factory a luceneMatchVersion is required
 org.apache.lucene.analysis.LengthFilter create(org.apache.lucene.analysis.TokenStream input)
          Transform the specified input TokenStream
 java.util.Map<java.lang.String,java.lang.String> getArgs()
           
protected  boolean getBoolean(java.lang.String name, boolean defaultVal)
           
protected  boolean getBoolean(java.lang.String name, boolean defaultVal, boolean useDefault)
           
protected  int getInt(java.lang.String name)
           
protected  int getInt(java.lang.String name, int defaultVal)
           
protected  int getInt(java.lang.String name, int defaultVal, boolean useDefault)
           
protected  org.apache.lucene.analysis.CharArraySet getWordSet(ResourceLoader loader, java.lang.String wordFiles, boolean ignoreCase)
           
 void init(java.util.Map<java.lang.String,java.lang.String> args)
          init will be called just once, immediately after creation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.solr.analysis.TokenFilterFactory
getArgs
 

Field Detail

MIN_KEY

public static final java.lang.String MIN_KEY
See Also:
Constant Field Values

MAX_KEY

public static final java.lang.String MAX_KEY
See Also:
Constant Field Values

args

protected java.util.Map<java.lang.String,java.lang.String> args
The init args


luceneMatchVersion

protected org.apache.lucene.util.Version luceneMatchVersion
the luceneVersion arg

Constructor Detail

LengthFilterFactory

public LengthFilterFactory()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> args)
Description copied from interface: TokenFilterFactory
init will be called just once, immediately after creation.

The args are user-level initialization parameters that may be specified when declaring the factory in the schema.xml

Specified by:
init in interface TokenFilterFactory

create

public org.apache.lucene.analysis.LengthFilter create(org.apache.lucene.analysis.TokenStream input)
Description copied from interface: TokenFilterFactory
Transform the specified input TokenStream


getArgs

public java.util.Map<java.lang.String,java.lang.String> getArgs()

assureMatchVersion

protected final void assureMatchVersion()
this method can be called in the #create method, to inform user, that for this factory a luceneMatchVersion is required


getInt

protected int getInt(java.lang.String name)

getInt

protected int getInt(java.lang.String name,
                     int defaultVal)

getInt

protected int getInt(java.lang.String name,
                     int defaultVal,
                     boolean useDefault)

getBoolean

protected boolean getBoolean(java.lang.String name,
                             boolean defaultVal)

getBoolean

protected boolean getBoolean(java.lang.String name,
                             boolean defaultVal,
                             boolean useDefault)

getWordSet

protected org.apache.lucene.analysis.CharArraySet getWordSet(ResourceLoader loader,
                                                             java.lang.String wordFiles,
                                                             boolean ignoreCase)
                                                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2006-2010 Hibernate. All Rights Reserved.