Re: Access HTTP headers from custom request handler

2009-04-23 Thread Ryan McKinley
Right, you will have to build a new war with your own subclass of SolrDispatchFilter *rather* then using the packaged one. On Apr 23, 2009, at 12:34 PM, Noble Paul നോബിള്‍ नोब्ळ् wrote: nope. you must edit the web.xml and register the filter there On Thu, Apr 23, 2009 at 3:45 PM, Giovann

Re: Access HTTP headers from custom request handler

2009-04-23 Thread Noble Paul നോബിള്‍ नोब्ळ्
nope. you must edit the web.xml and register the filter there On Thu, Apr 23, 2009 at 3:45 PM, Giovanni De Stefano wrote: > Hello Hoss, > > thank you for your reply. > > I have no problems subclassing the SolrDispatchFilter...but where shall I > configure it? :-) > > I cannot find any doc/wiki ex

Re: Access HTTP headers from custom request handler

2009-04-23 Thread Giovanni De Stefano
Hello Hoss, thank you for your reply. I have no problems subclassing the SolrDispatchFilter...but where shall I configure it? :-) I cannot find any doc/wiki explaining how to configure a custom dispatch filter. I believe it should be in solrconfig.xml ... Any idea? Is there a schema for sol

Re: Access HTTP headers from custom request handler

2009-04-14 Thread Chris Hostetter
: Solr cannot assume that the request would always come from http (think : of EmbeddedSolrServer) .So it assumes that there are only parameters exactly. : Your best bet is to modify SolrDispatchFilter and readthe params and : set them in the SolrRequest Object SolrDispatchFilter is designed to

Re: Access HTTP headers from custom request handler

2009-04-09 Thread Noble Paul നോബിള്‍ नोब्ळ्
well unfortunately , no. Solr cannot assume that the request would always come from http (think of EmbeddedSolrServer) .So it assumes that there are only parameters Your best bet is to modify SolrDispatchFilter and readthe params and set them in the SolrRequest Object or you can just write a Filt

Access HTTP headers from custom request handler

2009-04-09 Thread Giovanni De Stefano
Hello all, we are writing a custom request handler and we need to implement some business logic according to some HTTP headers. I see there is no easy way to access HTTP headers from the request handler. Moreover it seems to me that the HTTPServletness is lost way before the custom request handl