I read somewhere that in solr if we merge two different index than there is no duplicate values ie for a unique key there will be only one record. But while using solr 4.7.2 i merged two index using the command solr and I found that the duplicate records are present.

Can anyone explain it please. Thanks in advance.

有帮助吗?

解决方案

I don't know where you read that - the documentation is pretty clear that you should not merge indexes with duplicate values for the unique key as it will result in duplicates in the resulting index:

https://wiki.apache.org/solr/MergingSolrIndexes

https://cwiki.apache.org/confluence/display/solr/Merging+Indexes

http://lucene.472066.n3.nabble.com/Duplicate-docs-when-merging-indices-td1262043.html

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top