|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.analysis.BaseTokenFilterFactory
org.apache.solr.analysis.DoubleMetaphoneFilterFactory
public class DoubleMetaphoneFilterFactory
Factory for DoubleMetaphoneFilter
.
<fieldType name="text_dblmtphn" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="true" maxCodeLength="4"/> </analyzer> </fieldType>
Field Summary | |
---|---|
protected Map<String,String> |
args
The init args |
static int |
DEFAULT_MAX_CODE_LENGTH
|
static String |
INJECT
|
protected Version |
luceneMatchVersion
the luceneVersion arg |
static String |
MAX_CODE_LENGTH
|
Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory |
---|
log |
Constructor Summary | |
---|---|
DoubleMetaphoneFilterFactory()
|
Method Summary | |
---|---|
protected void |
assureMatchVersion()
this method can be called in the TokenizerFactory.create(java.io.Reader)
or TokenFilterFactory.create(org.apache.lucene.analysis.TokenStream) methods,
to inform user, that for this factory a luceneMatchVersion is required |
TokenFilter |
create(TokenStream input)
Transform the specified input TokenStream |
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 CharArraySet |
getSnowballWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
same as getWordSet(ResourceLoader, String, boolean) ,
except the input is in snowball format. |
protected CharArraySet |
getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
|
void |
init(Map<String,String> args)
init will be called just once, immediately after creation. |
protected void |
warnDeprecated(String message)
|
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 |
---|
public static final String INJECT
public static final String MAX_CODE_LENGTH
public static final int DEFAULT_MAX_CODE_LENGTH
protected Map<String,String> args
protected Version luceneMatchVersion
Constructor Detail |
---|
public DoubleMetaphoneFilterFactory()
Method Detail |
---|
public void init(Map<String,String> args)
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
init
in interface TokenFilterFactory
public TokenFilter create(TokenStream input)
TokenFilterFactory
public Map<String,String> getArgs()
protected final void assureMatchVersion()
TokenizerFactory.create(java.io.Reader)
or TokenFilterFactory.create(org.apache.lucene.analysis.TokenStream)
methods,
to inform user, that for this factory a luceneMatchVersion
is required
protected final void warnDeprecated(String message)
protected int getInt(String name)
protected int getInt(String name, int defaultVal)
protected int getInt(String name, int defaultVal, boolean useDefault)
protected boolean getBoolean(String name, boolean defaultVal)
protected boolean getBoolean(String name, boolean defaultVal, boolean useDefault)
protected CharArraySet getWordSet(ResourceLoader loader, String wordFiles, boolean ignoreCase) throws IOException
IOException
protected CharArraySet getSnowballWordSet(ResourceLoader loader, String wordFiles, boolean ignoreCase) throws IOException
getWordSet(ResourceLoader, String, boolean)
,
except the input is in snowball format.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |