public class ClassicTokenizerFactory extends BaseTokenizerFactory
ClassicTokenizer
.
<fieldType name="text_clssc" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.ClassicTokenizerFactory" maxTokenLength="120"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
private int |
maxTokenLength |
log
args, luceneMatchVersion
Constructor and Description |
---|
ClassicTokenizerFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Tokenizer |
create(java.io.Reader input)
Creates a TokenStream of the specified input
|
void |
init(java.util.Map<java.lang.String,java.lang.String> args)
init will be called just once, immediately after creation. |
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getSnowballWordSet, getWordSet, warnDeprecated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgs
public void init(java.util.Map<java.lang.String,java.lang.String> args)
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
init
in interface TokenizerFactory
init
in class BaseTokenStreamFactory
public org.apache.lucene.analysis.Tokenizer create(java.io.Reader input)
TokenizerFactory