lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ESSOUSSI Jamel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3761) Cannot flush solr (delete all existing documents)
Date Mon, 27 Aug 2012 10:51:07 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message