lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Umar Shah" <u...@wisdomtap.com>
Subject Re: help for preprocessing the query
Date Mon, 12 May 2008 15:06:52 GMT
On Mon, May 12, 2008 at 2:50 PM, Koji Sekiguchi <koji@r.email.ne.jp> wrote:

> Hi Umar,
>
> You may be able to preprocess your request parameter in your
> servlet filter. In the doFilter() method, you do:
>
> ServletRequest myRequest = new MyServletRequestWrapper( request );


Thanks for your response,

Where is the ServletRequest class , I am using Solr 1.3 trunk code
found SolrServletm, butit is depricated, which class can I use instead of
SolrRequest in 1.3 codebase?


I also tried overloading Standard request handler , How do I re write
queryparams there?

Can you point me to some documentation?


>   :
> chain.doFilter( myRequest, response );
>
> And you have MyServletRequestWrapper that extends ServletRequestWrapper.
> Then you can get|set q* parameters through getParameter() method.
>
> Hope this helps,
>
> Koji
>
>
>
> Umar Shah wrote:
>
> > Hi,
> >
> > Due some requirement I need to transform the user queries before passing
> > it
> > to the standard handler in Solr,  can anyone suggest me the best way to
> > do
> > this.
> >
> > I will need to use a transfomation class that would provide functions to
> > process the input query 'qIn' and transform it to the resultant query
> > 'qOut'
> > and then pass it to solr handler as if qOut were the original user
> > query.
> >
> > thanks in anticipation,
> > -umar
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message