将Solr重复值删除到多值字段中 [英] Removing Solr duplicate values into multivalued field
本文介绍了将Solr重复值删除到多值字段中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Solr索引包含具有重复值的多值字段。如何删除重复项?
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 field when indexing ?
谢谢
推荐答案
我正在努力实现同样的目标。这对我有用。
将以下处理器添加到solrconfig.xml
I was struggling to accomplish the same. This worked for me. Add the below processor to your solrconfig.xml
<updateRequestProcessorChain name="deduplicateMultiValued" default="true">
<processor class="org.apache.solr.update.processor.UniqFieldsUpdateProcessorFactory">
<lst name="fields">
<str>multivaluedFieldXYZ</str>
</lst>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
这篇关于将Solr重复值删除到多值字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文