Class TruncateFieldUpdateProcessorFactory

All Implemented Interfaces:
NamedListInitializedPlugin, SolrCoreAware

public final class TruncateFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
Truncates any CharSequence values found in fields matching the specified conditions to a maximum character length.

By default this processor matches no fields

For example, with the configuration listed below any documents containing a String in any field declared in the schema using StrField will be truncated to no more then 100 characters

 <processor class="solr.TruncateFieldUpdateProcessorFactory">
   <str name="typeClass">solr.StrField</str>
   <int name="maxLength">100</int>
 </processor>
Since:
4.0.0