public final class LastFieldValueUpdateProcessorFactory extends FieldValueSubsetUpdateProcessorFactory
By default, this processor matches no fields.
For example, in the configuration below, if a field named
primary_author
contained multiple values (ie:
"Adam Doe", "Bob Smith", "Carla Jones"
) then only the last
value (ie: "Carla Jones"
) will be kept
<processor class="solr.LastFieldValueUpdateProcessorFactory"> <str name="fieldName">primary_author</str> </processor>
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
LastFieldValueUpdateProcessorFactory() |
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<Object> |
pickSubset(Collection<Object> values)
Method subclasses must override to specify which values should be kept.
|
getInstance
getBooleanArg, getSelector, inform, init, oneOrMany, parseSelectorExclusionParams, parseSelectorParams
public LastFieldValueUpdateProcessorFactory()
public Collection<Object> pickSubset(Collection<Object> 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.