ESSOUSSI Jamel created SOLR-3761:
------------------------------------
Summary: Cannot flush solr (delete all existing documents)
Key: SOLR-3761
URL: https://issues.apache.org/jira/browse/SOLR-3761
Project: Solr
Issue Type: Bug
Components: clients - java, update
Affects Versions: 4.0-BETA, 4.0-ALPHA
Environment: linux debian 5, jdk 1.6 u 13
Reporter: ESSOUSSI Jamel
Fix For: 4.0
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
Thinks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]