lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From YouPeng Yang <yypvsxf19870...@gmail.com>
Subject How to delete docs only in a spec shard within a collection
Date Mon, 19 May 2014 03:31:36 GMT
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=<delete><query>BEGINTIME:["2014-03-01
00:00:00" TO *]</query></delete>&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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message