Hi,

What is the error exactly? Did you look at the logs?

Regards,
Marc.

2011/5/17 <el...@sina.com>

> Dear all,
> &nbsp;
> I have a problem about using solrj.
> From Solrj I learned that following code would delete all indexes from solr
> and it really did.
> &nbsp;
> &nbsp;&nbsp;&nbsp;SolrServer server = getSolrServer();
> &nbsp;&nbsp;&nbsp;UpdateResponse ur = server.deleteByQuery("*:*");
> &nbsp;&nbsp;&nbsp;server.commit();
>
> &nbsp;
> 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.
> &nbsp;
> Also I learned from solrj wiki, these a embedded server which might help.
> But nothing changed.
> &nbsp;
> I will appreciate if anybody could help. Any suggestion is also welcome.
> &nbsp;
> &nbsp;
> Best regards,
> Elsea
> &nbsp;

Reply via email to