Package org.apache.solr.update.processor
Class TrimFieldUpdateProcessorFactory
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
org.apache.solr.update.processor.TrimFieldUpdateProcessorFactory
- All Implemented Interfaces:
NamedListInitializedPlugin,SolrCoreAware
Trims leading and trailing whitespace from any CharSequence values found in fields matching the
specified conditions and returns the resulting String.
By default this processor matches all fields
For example, with the configuration listed all String field values will have leading and
trailing spaces removed except for fields whose named ends with "_literal".
<processor class="solr.TrimFieldUpdateProcessorFactory">
<lst name="exclude">
<str name="fieldRegex">.*_literal</str>
</lst>
</processor>- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessorFactory.SelectorParamsNested 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) Methods inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
getDefaultSelector, getSelector, inform, init, parseSelectorExclusionParams, parseSelectorParams
-
Constructor Details
-
TrimFieldUpdateProcessorFactory
public TrimFieldUpdateProcessorFactory()
-
-
Method Details
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) - Specified by:
getInstancein classUpdateRequestProcessorFactory
-