Class MappingCharFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.CharFilterFactory
org.apache.lucene.analysis.charfilter.MappingCharFilterFactory
- All Implemented Interfaces:
MultiTermAwareComponent,ResourceLoaderAware
public class MappingCharFilterFactory
extends CharFilterFactory
implements ResourceLoaderAware, MultiTermAwareComponent
Factory for
MappingCharFilter.
<fieldType name="text_map" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping.txt"/>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
</analyzer>
</fieldType>- Since:
- Solr 1.4
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionMappingCharFilterFactory(Map<String, String> args) Creates a new MappingCharFilterFactory -
Method Summary
Modifier and TypeMethodDescriptionWraps the given Reader with a CharFilter.Returns an analysis component to handle analysis if multi-term queries.voidinform(ResourceLoader loader) Initializes this component with the provided ResourceLoader (used for loading classes, files, etc).Methods inherited from class org.apache.lucene.analysis.util.CharFilterFactory
availableCharFilters, forName, lookupClass, reloadCharFiltersMethods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getChar, getClassArg, getLuceneMatchVersion, getOriginalArgs, getSet, isExplicitLuceneMatchVersion, require, require, require, requireChar, setExplicitLuceneMatchVersion
-
Constructor Details
-
MappingCharFilterFactory
Creates a new MappingCharFilterFactory
-
-
Method Details
-
inform
Description copied from interface:ResourceLoaderAwareInitializes this component with the provided ResourceLoader (used for loading classes, files, etc).- Specified by:
informin interfaceResourceLoaderAware- Throws:
IOException
-
create
Description copied from class:CharFilterFactoryWraps the given Reader with a CharFilter.- Specified by:
createin classCharFilterFactory
-
getMultiTermComponent
Description copied from interface:MultiTermAwareComponentReturns an analysis component to handle analysis if multi-term queries. The returned component must be a TokenizerFactory, TokenFilterFactory or CharFilterFactory.- Specified by:
getMultiTermComponentin interfaceMultiTermAwareComponent
-