Removing Solr duplicate values into multivalued field

后端 未结 7 1065
情书的邮戳
情书的邮戳 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:51

    I am using solrJ to bind documents, and to avoid duplicated values I defined my multivalued field as a HashSet.

    @Field("description")
    public Collection description = new HashSet<>();
    

提交回复
热议问题