org.apache.solr.update.processor

Class FieldNameMutatingUpdateProcessorFactory

  • All Implemented Interfaces:
    NamedListInitializedPlugin


    public class FieldNameMutatingUpdateProcessorFactory
    extends UpdateRequestProcessorFactory

    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>