I've inherited some code that filters requests for ACL by implementing a
servlet Filter and wrapping the request to add parameters (user/groups) to
the request as fq, and also handling getParameter()/getParameterMap() that
Solr invokes to get those values from the request.

Solrconfig.xml has placeholders for the parameters that are injected when
those methods are invoked:
 <lst name="appends">
          <str name="fq">{!acl user=$user groups=$groups}</str>        
</lst>

This all works exactly as expected using Solr 4.0.0 with Tomcat.

I'm attempting to upgrade to Solr 4.1.0, and these values are no longer
injected. I've traced the problem to the fact that Solr no longer invokes
getParameter()/getParameterMap() on my filtered, wrapped request as it did
in 4.0.0.

I note that in 4.0.0, the package org.apache.solr.request contained
ServletSolrParams class that was used to get the parameters from the request
using getParameters()/getParameterMap().

4.1.0 version of org.apache.solr.request no longer contains
ServletSolrParams, but there is no mention of this deprecation in the
release notes for Solr 4.1.0.

Is there a new standard way to access a filtered request with Solr 4.1.0?
Why don't the release notes for 4.1.0 mention this class deprecation?

Thanks for your help!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/v4-0-upgrade-to-v4-1-with-custom-fq-tp4166520.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to