You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "YouPeng Yang (JIRA)" <ji...@apache.org> on 2014/05/20 04:32:38 UTC
[jira] [Created] (SOLR-6093) delete docs only in a spec shard
within a collection
YouPeng Yang created SOLR-6093:
----------------------------------
Summary: delete docs only in a spec shard within a collection
Key: SOLR-6093
URL: https://issues.apache.org/jira/browse/SOLR-6093
Project: Solr
Issue Type: Improvement
Components: contrib - Clustering
Affects Versions: 4.7, 4.6
Reporter: YouPeng Yang
Priority: Minor
Suppose to delete docs in a spec shard within a collection,using this the command
[1]http://localhost: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 a result, all the docs over the collection which BEGINTIME is larger than 2014-03-01 00:00:00 were deleted.
After I check the source code :DistributedUpdateProcessor.doDeleteByQuery.It shows that the _route_ and shard.keys can make work, which indeed works after I have try with the cmd:
[2]http://10.1.22.1:8082/solr/tv_201402/update?stream.body=<delete><query>BEGINTIME:["2014-03-01 00:00:00" TO "2014-03-02 00:00:00"]</query></delete>&_route_=tv_201402&commit=true
As the first request[1],I use the shards parameter hoping to delete docs only in the tv_201402, while the second request[1],it change to _route_ parameter .
The purpose that I file the JIRA is that we should make it to be consist that the shards parameter should also can make request no distrib during updating just as some as searching.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org