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 7928411C24 for ; Mon, 19 May 2014 03:32:07 +0000 (UTC) Received: (qmail 29418 invoked by uid 500); 19 May 2014 03:32:04 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 29356 invoked by uid 500); 19 May 2014 03:32:04 -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 29348 invoked by uid 99); 19 May 2014 03:32:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 03:32:04 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yypvsxf19870706@gmail.com designates 209.85.160.182 as permitted sender) Received: from [209.85.160.182] (HELO mail-yk0-f182.google.com) (209.85.160.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 03:32:00 +0000 Received: by mail-yk0-f182.google.com with SMTP id 9so4105981ykp.27 for ; Sun, 18 May 2014 20:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=W0hMkKjldd6Z9ssK3DjbU/DytkypsEzWzwH04/BLrWM=; b=nJvjrb+3ZzQjvxCEUaUqUV+RQJVPpC41pY57dfjbBtEaZqn6B9iwxuNX239T82aDSn c6icDkv6e0zXD5MU6HOiz4xwCA0PGB8vWKDkybf0St8kXMf/aSKbHCJF4riPMcq7MU/I p6De61wMzKjJ+Khgo6HdVnhPw5lhRuPp/OseLhsMtA2hP0A6B3ObNfp5Bz6cI1/XmGEq IjsxeBR9913ZS/ChUAspqMdHICllAzZmtCVzTb9pma2Oim+gdXu1nr26yqxlyPoCrsrQ TuJQp9hBYniswsBFeg/42tgSFUdAwYXubigwn3/SM2z/8pk4FzQ1sCJ+6mt38YXoi3uh Jhpg== MIME-Version: 1.0 X-Received: by 10.236.190.72 with SMTP id d48mr38231994yhn.62.1400470296806; Sun, 18 May 2014 20:31:36 -0700 (PDT) Received: by 10.170.165.213 with HTTP; Sun, 18 May 2014 20:31:36 -0700 (PDT) Date: Mon, 19 May 2014 11:31:36 +0800 Message-ID: Subject: How to delete docs only in a spec shard within a collection From: YouPeng Yang To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=20cf305e263d8f4a9404f9b8667a X-Virus-Checked: Checked by ClamAV on apache.org --20cf305e263d8f4a9404f9b8667a Content-Type: text/plain; charset=UTF-8 Hi I have a colloection with 3 shards. I want to delete some docs in one shard with the command: http://10.1.22.1:8082/solr/tv_201402/update?&stream.body=BEGINTIME:["2014-03-01 00:00:00" TO *]&shards=tv_201402&commit=true As the red font exepression, It is supposed that docs only in the shard tv_201402 whose BEGINTIME field were larger than "2014-03-01 00:00:00" would be deleted.However ,as a result, the docs on the other shards such astv_201403 ,tv_201404 whose BEGINTIME were also larger than 2014-03-01 00:00:00 were deleted too. This is not the effientlty right thing I want. How to delete docs only in a spec shard within a collection which contains several shards? Regards. --20cf305e263d8f4a9404f9b8667a--