Ok Thanks Erick, for your help.

Tony.


On Sun, Jul 14, 2013 at 5:12 PM, Erick Erickson <erickerick...@gmail.com>wrote:

> Not sure how to do the "pass to another request handler" thing, but
> the debugging part is pretty straightforward. I use IntelliJ, but as far
> as I know Eclipse has very similar capabilities.
>
> First, I cheat and path to the jar that's the output from my IDE, that
> saves copying the jar around. So my solrconfig.xml file has  a lib
> directive like
> ../../../../../eoe/project/out/artifact/jardir
> where this is wherever your IDE wants to put it. It can sometimes be
> tricky to get enough ../../../ in there.
>
> Second, "edit config", select "remote" and a form comes up. Fill
> in host and port, something like "localhost" and "5900" (this latter
> is whatever you want". In IntelliJ that'll give you the specific command
> to use to start Solr so you can attach. This looks like the following
> for my setup:
> java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5900
> -jar start.jar
>
> Now just fire up Solr as above. Fire up your remote debugging
> session in IntelliJ. Set breakpoints as you wish. NOT: the "suspend=y"
> bit above means that Solr will do _nothing_ until you attach the
> debugger and hit "go"
>
> HTH
> Erick
>
> On Sat, Jul 13, 2013 at 6:57 AM, Tony Mullins <tonymullins...@gmail.com>
> wrote:
> > Please any help on how to pass the search request to different
> > RequestHandler from within the custom RequestHandler and how to debug the
> > custom RequestHandler plugin ?
> >
> > Thanks,
> > Tony
> >
> >
> > On Fri, Jul 12, 2013 at 4:41 PM, Tony Mullins <tonymullins...@gmail.com
> >wrote:
> >
> >> Hi,
> >>
> >> I have defined my new Solr RequestHandler plugin like this in
> >> SolrConfig.xml
> >>
> >> <requestHandler name="/myendpoint" class="com.abc.MyRequestPlugin">
> >> </requestHandler>
> >>
> >> And its working fine.
> >>
> >> Now I want to do some custom processing from my this plugin by making a
> >> search query to regular '/select' handler.
> >>  <requestHandler name="/select" class="solr.SearchHandler">
> >>  ........
> >> </requestHandler>
> >>
> >> And then receive the results back from '/select' handler and perform
> some
> >> custom processing on those results and send the response back to my
> custom
> >> "/myendpoint" handler.
> >>
> >> And for this I need help on how to make a call to '/select' handler from
> >> within the .MyRequestPlugin class and perform some calculation on the
> >> results.
> >>
> >> I also need some help on how to debug my plugin ? As its .jar is been
> >> deployed to solr_hom/lib ... how can I attach my plugin's code in
> eclipse
> >> to Solr process so I could debug it when user will send request to my
> >> plugin.
> >>
> >> Thanks,
> >> Tony
> >>
>

Reply via email to