Hi Erick It can get hits on this documents. And I try this :
myhost/solr/mycore/update?stream.body=<delete><query>name:shardTv_20131010</query></delete>&commit=true the document could be deleted. Regards 2013/10/23 Erick Erickson <erickerick...@gmail.com> > The first thing I'd do is go in to the browser UI and make sure you can get > hits on documents, something like > blah/collection/q=indexname:shardTv_20131010 > > Best, > Erick > > > On Wed, Oct 23, 2013 at 8:20 AM, YouPeng Yang <yypvsxf19870...@gmail.com > >wrote: > > > Hi > > I am using SolrCloud withing solr 4.4 ,and I try the SolrJ API > > deleteByQuery to delete the Index as : > > CloudSolrServer cloudServer = new CloudSolrServer(myZKhost) > > cloudServer.connect() > > cloudServer.setDefaultCollection > > cloudServer.deleteByQuery("indexname:shardTv_20131010"); > > cloudServer.commit(); > > > > It seems not to work. > > I also have do some google,unfortunately there is no help. > > > > Do I miss anything? > > > > > > Thanks > > > > Regard > > >