Removing Solr duplicate values into multivalued field

后端 未结 7 1120
情书的邮戳
情书的邮戳 2021-02-19 03:13

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

7条回答
  •  春和景丽
    2021-02-19 03:41

    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)

提交回复
热议问题