Class UniqFieldsUpdateProcessorFactory

  • All Implemented Interfaces:
    NamedListInitializedPlugin, SolrCoreAware

    public class UniqFieldsUpdateProcessorFactory
    extends FieldValueSubsetUpdateProcessorFactory
    Removes duplicate values found in fields matching the specified conditions. The existing field values are iterated in order, and values are removed when they are equal to a value that has already been seen for this field.

    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>