My Solr index contains a multivalued field with duplicate values. How can I remove the duplicates ?
Is it possible to overwrite duplicate values into the multivalued fie
In latest version of solr you can use add-distinct
while doing atomic updates to multivalued fields.
add-distinct: Adds the specified values to a multiValued field, only if not already present. May be specified as a single value, or as a list.
(ref: https://lucene.apache.org/solr/guide/8_8/updating-parts-of-documents.html)