Re: Problem about Solrj

2011-05-19 Thread deniz
sorry for the typos in the prev msg... a little bit drowsy still...

so if you can make a little bit more clear about your problem, we can help
you

-
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-about-Solrj-tp2952009p2963935.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem about Solrj

2011-05-19 Thread deniz
you mean you have change the code of the solr admin page to remove all
indexes?  and also, when you by "indexes are gone" you mean they are deleted
or solr sees no indexes when you run it? a little bit confusing post :)

-
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-about-Solrj-tp2952009p2963901.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem about Solrj

2011-05-17 Thread Marc SCHNEIDER
Hi,

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

Regards,
Marc.

2011/5/17 

> 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
>  


Problem about Solrj

2011-05-17 Thread elsea
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