your docs are marked as deleted.
you should optimize after commit, then they will be really deleted.
it's easier and faster to stop your jetty/tomcat, drop your index
directory and start your servlet container...
when it's not possible, then optimize.
regards
Vadim


2012/8/27 Jamel ESSOUSSI <jamel.essou...@gmail.com>:
> 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