Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10E0818985 for ; Fri, 8 Jan 2016 17:12:28 +0000 (UTC) Received: (qmail 90198 invoked by uid 500); 8 Jan 2016 17:12:24 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 90137 invoked by uid 500); 8 Jan 2016 17:12:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 90124 invoked by uid 99); 8 Jan 2016 17:12:23 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 17:12:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8E46A180495 for ; Fri, 8 Jan 2016 17:12:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.212 X-Spam-Level: * X-Spam-Status: No, score=1.212 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id q3hLBR76tBRM for ; Fri, 8 Jan 2016 17:12:16 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 95DB343A2B for ; Fri, 8 Jan 2016 17:12:16 +0000 (UTC) Received: by mail-io0-f176.google.com with SMTP id 1so245502624ion.1 for ; Fri, 08 Jan 2016 09:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=xEtyFI3BIItntAcIm7oQOfSiF2uIiyat4lecShRkL3o=; b=P3OIagHRcA+A7bBl4ZLMtDSZfAv/zytL+KQW6xVS49bHrOqbz5BV9wvRHK+bom3P8M b9xgD3zy9iX9+FzNW+kpt9QRhK0YLqnKS1pk7wQSAa/Gvvvp5WWpz+z05CUgaNhf6082 Yr0yymse3jDDyxEFXeWWYpPNrehsiZJwQ88A63rAYqdRRMwM8QTk9+cH8tneV3cdQgph +wJ9C6EJ5fuD2+OHeVxGwtFRaPWDjMKeh8btaNms5GXDx+F1BV9HAfGfoNTfiRzFcmo6 uTCS0T/hpcqCOiPSrWTRfxJcb7XuaaNw1Cordbwt0JDJATny5WLElhFuxCrh07qRdZnX IBrw== MIME-Version: 1.0 X-Received: by 10.107.135.23 with SMTP id j23mr80918110iod.50.1452273136270; Fri, 08 Jan 2016 09:12:16 -0800 (PST) Received: by 10.107.53.197 with HTTP; Fri, 8 Jan 2016 09:12:16 -0800 (PST) In-Reply-To: <1452243155408-4249354.post@n3.nabble.com> References: <1452243155408-4249354.post@n3.nabble.com> Date: Fri, 8 Jan 2016 09:12:16 -0800 Message-ID: Subject: Re: solrcloud -How to delete a doc at a specific shard From: Erick Erickson To: solr-user Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3Dtrue&stream.body=3Didhere Best, Erick On Fri, Jan 8, 2016 at 12:52 AM, elvis=E9=B1=BC=E4=BA=BA 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/solrclou= d-How-to-delete-a-doc-at-a-specific-shard-tp4249354.html > Sent from the Solr - User mailing list archive at Nabble.com.