public class DaitchMokotoffSoundexFilterFactory extends TokenFilterFactory
DaitchMokotoffSoundexFilter
.
Create tokens based on Daitch–Mokotoff Soundex phonetic filter.
This takes one optional argument:
<fieldType name="text_phonetic" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.DaitchMokotoffSoundexFilterFactory" inject="true"/> </analyzer> </fieldType>
DaitchMokotoffSoundexFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INJECT
parameter name: true if encoded tokens should be added as synonyms
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
DaitchMokotoffSoundexFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
Creates a new PhoneticFilterFactory
|
Modifier and Type | Method and Description |
---|---|
DaitchMokotoffSoundexFilter |
create(TokenStream input)
Transform the specified input TokenStream
|
availableTokenFilters, forName, lookupClass, reloadTokenFilters
get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
public static final java.lang.String INJECT
public DaitchMokotoffSoundexFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
public DaitchMokotoffSoundexFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.