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.SelectorParamsUpdateRequestProcessorFactory.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, parseSelectorParamspublic void init(NamedList args)
FieldMutatingUpdateProcessorFactoryinit in interface NamedListInitializedPlugininit in class FieldMutatingUpdateProcessorFactorypublic FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
FieldMutatingUpdateProcessorFactorygetDefaultSelector in class FieldMutatingUpdateProcessorFactoryFieldMutatingUpdateProcessor.SELECT_ALL_FIELDSpublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance in class UpdateRequestProcessorFactoryCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.