public final class MinFieldValueUpdateProcessorFactory extends FieldValueSubsetUpdateProcessorFactory
By default, this processor matches no fields.
In the example configuration below, if a document contains multiple integer
values (ie: 64, 128, 1024
) in the field
smallestFileSize
then only the smallest value
(ie: 64
) will be kept in that field.
<processor class="solr.MinFieldValueUpdateProcessorFactory"> <str name="fieldName">smallestFileSize</str> </processor>
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
MinFieldValueUpdateProcessorFactory() |
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.
|
Collection |
pickSubset(Collection values)
Method subclasses must override to specify which values should be kept.
|
getInstance
getBooleanArg, getSelector, inform, init, oneOrMany, parseSelectorExclusionParams, parseSelectorParams
public Collection pickSubset(Collection values)
FieldValueSubsetUpdateProcessorFactory
pickSubset
in class FieldValueSubsetUpdateProcessorFactory
public FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
FieldMutatingUpdateProcessorFactory
getDefaultSelector
in class FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessor.SELECT_ALL_FIELDS
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.