public class EdgeNGramTokenizerFactory extends BaseTokenizerFactory
EdgeNGramTokenizer.
<fieldType name="text_edgngrm" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.EdgeNGramTokenizerFactory" side="front" minGramSize="1" maxGramSize="1"/>
</analyzer>
</fieldType>| Modifier and Type | Field and Description |
|---|---|
private int |
maxGramSize |
private int |
minGramSize |
private java.lang.String |
side |
logargs, luceneMatchVersion| Constructor and Description |
|---|
EdgeNGramTokenizerFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.ngram.EdgeNGramTokenizer |
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, warnDeprecatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgsprivate int maxGramSize
private int minGramSize
private java.lang.String side
public void init(java.util.Map<java.lang.String,java.lang.String> args)
TokenizerFactoryinit 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 TokenizerFactoryinit in class BaseTokenStreamFactorypublic org.apache.lucene.analysis.ngram.EdgeNGramTokenizer create(java.io.Reader input)
TokenizerFactory