org.apache.solr.analysis
Class StandardTokenizerFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenizerFactory
org.apache.solr.analysis.StandardTokenizerFactory
- All Implemented Interfaces:
- TokenizerFactory
public class StandardTokenizerFactory
- extends BaseTokenizerFactory
- Version:
- $Id: StandardTokenizerFactory.java 929782 2010-04-01 02:15:27Z rmuir $
|
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.standard.StandardTokenizer |
create(Reader input)
Creates a TokenStream of the specified input |
Map<String,String> |
getArgs()
|
protected boolean |
getBoolean(String name,
boolean defaultVal)
|
protected boolean |
getBoolean(String name,
boolean defaultVal,
boolean useDefault)
|
protected int |
getInt(String name)
|
protected int |
getInt(String name,
int defaultVal)
|
protected int |
getInt(String name,
int defaultVal,
boolean useDefault)
|
protected org.apache.lucene.analysis.CharArraySet |
getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
|
void |
init(Map<String,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 |
args
protected Map<String,String> args
- The init args
luceneMatchVersion
protected org.apache.lucene.util.Version luceneMatchVersion
- the luceneVersion arg
StandardTokenizerFactory
public StandardTokenizerFactory()
init
public void init(Map<String,String> args)
- Description copied from interface:
TokenizerFactory
init will be called just once, immediately after creation.
The args are user-level initialization parameters that
may be specified when declaring a the factory in the
schema.xml
- Specified by:
init in interface TokenizerFactory
create
public org.apache.lucene.analysis.standard.StandardTokenizer create(Reader input)
- Description copied from interface:
TokenizerFactory
- Creates a TokenStream of the specified input
getArgs
public Map<String,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(String name)
getInt
protected int getInt(String name,
int defaultVal)
getInt
protected int getInt(String name,
int defaultVal,
boolean useDefault)
getBoolean
protected boolean getBoolean(String name,
boolean defaultVal)
getBoolean
protected boolean getBoolean(String name,
boolean defaultVal,
boolean useDefault)
getWordSet
protected org.apache.lucene.analysis.CharArraySet getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
throws IOException
- Throws:
IOException
Copyright © 2006-2010 Hibernate. All Rights Reserved.