Embedded Solr and Servlet Solr

2008-01-23 Thread Jonathan Ariel
Hi!
I am using Solr (the classic servlet one) in my application. But for special
cases, and just for the sake of optimization, I would like to access it
locally so I can avoid HTTP calls and XML serializing. This is for full re
indexation of Solr, which is much faster in embedded environment than
servlet.
Is it possible to use SolrJ in my web application to access Solr remotely
and use SolrJ in a simple application to access Solr locally for full re
indexation?

Thanks!

Jonathan


Re: Embedded Solr and Servlet Solr

2008-01-23 Thread Ryan McKinley



Is it possible to use SolrJ in my web application to access Solr remotely
and use SolrJ in a simple application to access Solr locally for full re
indexation?



yes - check: http://wiki.apache.org/solr/Solrj

for remote, use CommonsHttpSolrServer and for local, use: 
EmbeddedSolrServer.


ryan