public final class TrimFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
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>
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
TrimFieldUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
init(NamedList args)
Handles common initialization related to source fields for
constructing the FieldNameSelector to be used.
|
getBooleanArg, getDefaultSelector, getSelector, inform, oneOrMany, parseSelectorExclusionParams, parseSelectorParams
public void init(NamedList args)
FieldMutatingUpdateProcessorFactory
init
in interface NamedListInitializedPlugin
init
in class FieldMutatingUpdateProcessorFactory
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.