Package org.apache.solr.update.processor
Class FieldNameMutatingUpdateProcessorFactory
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.FieldNameMutatingUpdateProcessorFactory
- All Implemented Interfaces:
NamedListInitializedPlugin
In the FieldNameMutatingUpdateProcessorFactory configured below, fields names will be mutated if
the name contains space. Use multiple instances of this processor for multiple replacements
<processor class="solr.FieldNameMutatingUpdateProcessorFactory"> <str name="pattern ">\s</str> <str name="replacement">_</str> </processor>
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) voidinit(org.apache.solr.common.util.NamedList<?> args) initwill be called just once, immediately after creation.
-
Constructor Details
-
FieldNameMutatingUpdateProcessorFactory
public FieldNameMutatingUpdateProcessorFactory()
-
-
Method Details
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) - Specified by:
getInstancein classUpdateRequestProcessorFactory
-
init
public void init(org.apache.solr.common.util.NamedList<?> args) Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Parameters:
args- non-null list of initialization parameters (may be empty)
-