This simply shouldn't be the case if by "duplicate" you mean it has the same id (i.e. the field defined as the uniqueKey in schema.xml). If you do have docs in different shards with the same ID, then something is very strange about your setup.
What version of Solr BTW? Assuming you mean "same content but different IDs" then you can delete by ID either through SolrJ or on the URL .../collection/update?commit=true&stream.body=<delete><id>idhere</id></delete> Best, Erick On Fri, Jan 8, 2016 at 12:52 AM, elvis鱼人 <q474818...@163.com> wrote: > my solrcloud,3 shards,and 2replica, > and one shard docs is duplicate,the document router is compositeId > who can help me? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/solrcloud-How-to-delete-a-doc-at-a-specific-shard-tp4249354.html > Sent from the Solr - User mailing list archive at Nabble.com.