Ok, I glued all stuff and ended up extending handler.component.SearchHandler cause I wan to use all it's functionlity only toadjust the q param before it gets preocessed. How exactly can I get the q and set it back later? >From digging code it seems thats the way....
SolrParams p = req.getParams(); String words = p.get("q"); but I get SolrParams is depricated and type mismatch cannot convert SolrParams to SolrParams even like this SolrParams p = (SolrParams) req.getParams(); I get error and 500 when trying to use it. Any pointers to howto set and get are more than welcome. at end of it I am using super.handleRequestBody(req, rsp); so no other stuff to mess. Mats Lindh wrote: > I wrote a small post regarding how to create an analysis filter about a year > ago. I'm guessing that the process is quite similar when developing a custom > request handler: > > http://e-mats.org/2008/06/writing-a-solr-analysis-filter-plugin/ > > Hope that helps. > > --mats > > On Wed, Jun 24, 2009 at 12:54 PM, Julian Davchev <j...@drun.net> wrote: > > >> Well it's really lovely whats in there but this is just configuration >> aspect. Is there sample where should I place my class etc >> and howto complie and all. just simple top to bottom example. I guess >> most of those aspects might be java but they are solr related as well. >> >> Noble Paul നോബിള് नोब्ळ् wrote: >> >>> this part of the doc explains what you shold do to write a custom >>> >> requesthandler >> >>> >> http://wiki.apache.org/solr/SolrPlugins#head-7c0d03515c496017f6c0116ebb096e34a872cb61 >> >>> On Wed, Jun 24, 2009 at 3:35 AM, Julian Davchev<j...@drun.net> wrote: >>> >>> >>>> Is it just me or this is thread steal? nothing todo with what thread is >>>> originally about. >>>> Cheers >>>> >>>> Bill Dueber wrote: >>>> >>>> >>>>> Is it possible to change the javascript output? I find some of the >>>>> information choices (e.g., that facet information is returned in a flat >>>>> list, with facet names in the even-numbered indexes and number-of-items >>>>> following them in the odd-numbered indexes) kind of annoying. >>>>> >>>>> On Tue, Jun 23, 2009 at 12:16 PM, Eric Pugh < >>>>> >> ep...@opensourceconnections.com >> >>>>> >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> Like most things JavaScript, I found that I had to just dig through it >>>>>> >> and >> >>>>>> play with it. However, the Reuters demo site was very easy to >>>>>> >> customize to >> >>>>>> interact with my own Solr instance, and I went from there. >>>>>> >>>>>> >>>>>> On Jun 23, 2009, at 11:30 AM, Julian Davchev wrote: >>>>>> >>>>>> Never used it.. I am just looking in docs how can I extend solr but >>>>>> >> no >> >>>>>> >>>>>>> luck so far :( >>>>>>> Hoping for some docs or real extend example. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Eric Pugh wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Are you using the JavaScript interface to Solr? >>>>>>>> http://wiki.apache.org/solr/SolrJS >>>>>>>> >>>>>>>> It may provide much of what you are looking for! >>>>>>>> >>>>>>>> Eric >>>>>>>> >>>>>>>> On Jun 23, 2009, at 10:27 AM, Julian Davchev wrote: >>>>>>>> >>>>>>>> I am using solr and php quite nicely. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Currently the work flow includes some manipulation on php side so I >>>>>>>>> correctly format the query string and pass to tomcat/solr. >>>>>>>>> I somehow want to build own request handler in java so I skip the >>>>>>>>> >> whole >> >>>>>>>>> apache/php request that is just for formating. >>>>>>>>> This will saves me tons of requests to apache since I use solr >>>>>>>>> >> directly >> >>>>>>>>> from javascript. >>>>>>>>> >>>>>>>>> Would like to ask if there is something ready that I can use and >>>>>>>>> >> adjust. >> >>>>>>>>> I am kinda new in Java but once I get the pointers >>>>>>>>> I think should be able to pull out. >>>>>>>>> Thanks, >>>>>>>>> JD >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> ----------------------------------------------------- >>>>>>>> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | >>>>>>>> http://www.opensourceconnections.com >>>>>>>> Free/Busy: http://tinyurl.com/eric-cal >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> ----------------------------------------------------- >>>>>> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | >>>>>> http://www.opensourceconnections.com >>>>>> Free/Busy: http://tinyurl.com/eric-cal >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>> >>> >>> >> > >