public class UniqFieldsUpdateProcessorFactory extends FieldValueSubsetUpdateProcessorFactory
By default this processor matches no fields.
In the example configuration below, if a document initially contains the values
"Steve","Lucy","Jim",Steve","Alice","Bob","Alice"
in a field named
foo_uniq
then using this processor will result in the final list of
field values being "Steve","Lucy","Jim","Alice","Bob"
<processor class="solr.UniqFieldsUpdateProcessorFactory"> <str name="fieldRegex">.*_uniq</str> </processor>
FieldMutatingUpdateProcessorFactory.SelectorParams
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
UniqFieldsUpdateProcessorFactory() |
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 values)
Method subclasses must override to specify which values should be kept.
|
getInstance
getSelector, inform, init, parseSelectorExclusionParams, parseSelectorParams
public FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
FieldMutatingUpdateProcessorFactory
getDefaultSelector
in class FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessor.SELECT_ALL_FIELDS
public Collection<Object> pickSubset(Collection values)
FieldValueSubsetUpdateProcessorFactory
pickSubset
in class FieldValueSubsetUpdateProcessorFactory
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.