public class MappingCharFilterFactory extends CharFilterFactory implements ResourceLoaderAware, MultiTermAwareComponent
MappingCharFilter
.
<fieldType name="text_map" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.MappingCharFilterFactory" mapping="mapping.txt"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
protected NormalizeCharMap |
normMap |
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
MappingCharFilterFactory(Map<String,String> args)
Creates a new MappingCharFilterFactory
|
Modifier and Type | Method and Description |
---|---|
Reader |
create(Reader input)
Wraps the given Reader with a CharFilter.
|
AbstractAnalysisFactory |
getMultiTermComponent()
Returns an analysis component to handle analysis if multi-term queries.
|
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
protected void |
parseRules(List<String> rules,
NormalizeCharMap.Builder builder) |
protected String |
parseString(String s) |
availableCharFilters, forName, lookupClass, reloadCharFilters
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, splitFileNames
protected NormalizeCharMap normMap
public void inform(ResourceLoader loader) throws IOException
ResourceLoaderAware
inform
in interface ResourceLoaderAware
IOException
public Reader create(Reader input)
CharFilterFactory
create
in class CharFilterFactory
protected void parseRules(List<String> rules, NormalizeCharMap.Builder builder)
public AbstractAnalysisFactory getMultiTermComponent()
MultiTermAwareComponent
getMultiTermComponent
in interface MultiTermAwareComponent
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.