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
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
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.
|
void |
init(NamedList args)
Handles common initialization related to source fields for
constructing the FieldNameSelector to be used.
|
Collection |
pickSubset(Collection values)
Method subclasses must override to specify which values should be kept.
|
getInstance
getBooleanArg, getSelector, inform, oneOrMany, parseSelectorExclusionParams, parseSelectorParams
public FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
FieldMutatingUpdateProcessorFactory
getDefaultSelector
in class FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessor.SELECT_ALL_FIELDS
public void init(NamedList args)
FieldMutatingUpdateProcessorFactory
init
in interface NamedListInitializedPlugin
init
in class FieldMutatingUpdateProcessorFactory
public Collection pickSubset(Collection values)
FieldValueSubsetUpdateProcessorFactory
pickSubset
in class FieldValueSubsetUpdateProcessorFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.