public final class TruncateFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
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>
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
TruncateFieldUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
FieldMutatingUpdateProcessor.FieldNameSelector |
getDefaultSelector(SolrCore core)
Defines the default selection behavior when the user has not
configured any specific criteria for selecting fields.
|
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.
|
getSelector, inform, parseSelectorExclusionParams, parseSelectorParams
public void init(NamedList args)
FieldMutatingUpdateProcessorFactory
init
in interface NamedListInitializedPlugin
init
in class FieldMutatingUpdateProcessorFactory
public FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
FieldMutatingUpdateProcessorFactory
getDefaultSelector
in class FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessor.SELECT_ALL_FIELDS
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.