Hi,

I should flush solr (delete all existing documents)
--> for doing this, I have the following code:


HttpSolrServer server = HttpSolrServer(url);

server.setSoTimeout(1000);
server.setConnectionTimeout(100);
server.setDefaultMaxConnectionsPerHost(100);
server.setMaxTotalConnections(100);
server.setFollowRedirects(false);
server.setAllowCompression(true);
server.setMaxRetries(1);
server.setParser(new XMLResponseParser());

UpdateResponse ur = server.deleteByQuery("*:*");

server.commit(true, true);

In the result, I hace already all document, --> the ur.getStatus() eq "0"
and the solr documents was not deleted

--> I have'nt server or client errors

Can you explain me why it did not work,

Thinks











--
View this message in context: 
http://lucene.472066.n3.nabble.com/flush-delete-all-document-solr-4-Beta-tp4003434.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to