public final class FieldLengthUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
By default, this processor matches no fields.
For example, with the configuration listed below any documents
containing String values (such as "abcdef" or
"xyz") in a field declared in the schema using
TrieIntField or TrieLongField
would have those Strings replaced with the length of those fields as an
Integer
(ie: 6 and 3 respectively)
<processor class="solr.FieldLengthUpdateProcessorFactory">
<arr name="typeClass">
<str>solr.TrieIntField</str>
<str>solr.TrieLongField</str>
</arr>
</processor>FieldMutatingUpdateProcessorFactory.SelectorParamsUpdateRequestProcessorFactory.RunAlways| Constructor and Description |
|---|
FieldLengthUpdateProcessorFactory() |
| 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.
|
getBooleanArg, getSelector, inform, oneOrMany, 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.