Hi, 
 
yesterday I tried the Solr-1.3-RC2 and everything seems to work fine using the 
traditional single-core setup. But while troubleshooting the new multi-core 
feature, I realized for the first time, that I have been using the deprecated 
(even in 1.2) class SolrServlet. This is a huge problem for us, as we run the 
solr-web-app parallel to our main web-app in the same servlet-container. Using 
this approach we can internally forward update- and select-requests to the 
Solr-instance currently in use. 
 
ServletContext ctx = getServletContext().getContext("solr1");
RequestDispatcher rd = ctx.getNamedDispatcher("SolrServer");
rd.forward(request, response);

As you can see, this approach only works for the servlet named 'SolrServer' 
which references the deprecated class. 

The attempt of using a path based dispatcher (ctx.getRequestDispatcher) was not 
successful, even though I configured the SolrRequestFilter in the solr-web.xml 
to work on forwards (<dispatcher>FORWARD</dispatcher>), which the documentation 
discourages. Maybe this is because of the cross-context-dispatch?

At the moment I ran totally out of ideas, apart from completely redesigning our 
whole setup. Any ideas are highly appreciated. 

Thanks in advance,
Björn

 

 

 

 

 

Reply via email to