public final class MaxFieldValueUpdateProcessorFactory 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
largestFileSize
then only the biggest value
(ie: 1024
) will be kept in that field.
<processor class="solr.MaxFieldValueUpdateProcessorFactory"> <str name="fieldName">largestFileSize</str> </processor>
MinFieldValueUpdateProcessorFactory
,
Collections.max(java.util.Collection<? extends T>)
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
MaxFieldValueUpdateProcessorFactory() |
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
getSelector, inform, init, 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-2019 Apache Software Foundation. All Rights Reserved.