lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: solrcloud -How to delete a doc at a specific shard
Date Fri, 08 Jan 2016 17:12:16 GMT
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鱼人 <q474818917@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.

Mime
View raw message