Dear all,
 
I have a problem about using solrj. 
From Solrj I learned that following code would delete all indexes from solr and 
it really did.
 
   SolrServer server = getSolrServer();
   UpdateResponse ur = server.deleteByQuery("*:*");
   server.commit();

 
But somehow when I put this code in a jsp which belongs to solr application 
itself, it doesn't work. It looks like something cached because when I restart 
the server, the indexes is gone. In this case the server code and client code 
are both running on a tomcat.
 
Also I learned from solrj wiki, these a embedded server which might help. But 
nothing changed.
 
I will appreciate if anybody could help. Any suggestion is also welcome.
 
 
Best regards,
Elsea
 

Reply via email to