Thanks Atita, Sidana and Erick. @Atita, tried the procedure suggested here <http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source> . But don't see any war file in the /extract_location/solr-6.6.1/solr/xxxsolr-<ver>-SNAPSHOT.war directory after step #7
@Sidana, tried the procedure suggested here. <http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/> with small changes. But did not work. 1) Built eclipse target using $ant eclipse 2) Imported the solr eclipse project 3) Refresh project in eclipse 4) Built solr server $ant server 5) Started the server and listening on 7666 port 6) Started solr in debug mode 7) I see the following message in my cmd prompt. Any Idea? @Atita, Sidana. Could it be due to changes in version(might be missing many changes) from 4.x.x to 6.6.1. Please correct me if I am wrong. @Erick, 1> do you have ant installed? My guess is yes but thought I'd check #1.Yes, Ant is installed 2> what target are you executing? "ant server"? "ant dist"? ??? #2. I followed 2 different blogs and executing different targets on different src-code bundles. --> built ant dist <http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source> --> built ant server <http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/> 3> the first time you execute an ant task you should see a message about a target to install "ivy", did you see it and did you follow it? #3. Earlier I did not include the ivy file in ant/lib directory. Now It is resolved. ------------------------------------------------------------------------------------------------------------------------------------------- As I mentioned in my previous mail, I am working on *solrTextTagger feature <https://github.com/OpenSextant/SolrTextTagger/issues/67>*. And I want to know, How Can I debug my changes. I found similar problem here <http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>. How to pass the search request to different RequestHandler from within the custom RequestHandler and how to debug the custom RequestHandler plugin ? @Erick, tried the process mentioned by you on that thread. It did not work for me and could not understand where was it going wrong. Defined my custom handler in solrschema.xml <requestHandler name="/custom" class="org.opensextant.solrtexttagger.TaggerRequestHandler"> </requestHandler> Defined my custom handler jar file location location <lib dir="${user.home}/git/SolrTextTagger/target"/> (solr-text-tagger.jar location) I made some changes to the solrTextTagger, And built a jar using maven. and enabled the Xdebug [image: Inline image 1] I am running solr as a service. And sending a request using HTTP Post method. It is working fine. But the problem is how can I debug solr-text-tagger.jar code to check and make changes. (How to do remote debugging?). It says no main manifest attribute. I would be glad if I can get solution specific to this issue. .Best, Srini Sampath On Fri, Sep 22, 2017 at 9:55 PM, Erick Erickson <erickerick...@gmail.com> wrote: > 1> do you have ant installed? My guess is yes but thought I'd check > 2> what target are you executing? "ant server"? "ant dist"? ??? > 3> the first time you execute an ant task you should see a message > about a target to install "ivy", did you see it and did you follow it? > That should install ivy-2.4.0.jar (or similar) in ./ant/lib > > Best, > Erick > > On Fri, Sep 22, 2017 at 3:11 AM, Sidana, Mohit > <mohit.sid...@wolterskluwer.com> wrote: > > Here's a very nice article on " How to Debug Solr With Eclipse" which I > have used previously to debug solr with eclipse. > > > > http://opensourceconnections.com/blog/2013/04/13/how-to- > debug-solr-with-eclipse/ > > > > > > -----Original Message----- > > From: Atita Arora [mailto:atitaar...@gmail.com] > > Sent: Friday, September 22, 2017 10:07 AM > > To: solr-user@lucene.apache.org > > Subject: Re: How to build solr > > > > http://www.gingercart.com/Home/search-and-crawl/build- > and-run-solr-from-source > > > > and follow thread > > > > http://lucene.472066.n3.nabble.com/running-solr-in- > debug-through-eclipse-td4159777.html > > > > to run solr server in debug mode through eclipse. > > > > Should give you some hint. > > > > Let me go through your error again to see , if I get some clue there. > > > > -Atita > > > > On Fri, Sep 22, 2017 at 11:41 AM, srini sampath < > sampathsrini.c...@gmail.com > >> wrote: > > > >> Thanks Aman, > >> Erick, I followed the link and I am getting the following error, > >> > >> Buildfile: ${user.home}\git\lucene-solr\build.xml > >> > >> compile: > >> > >> -check-git-state: > >> > >> -git-cleanroot: > >> > >> -copy-git-state: > >> > >> git-autoclean: > >> > >> resolve: > >> > >> ivy-availability-check: > >> > >> BUILD FAILED > >> ${user.home}\git\lucene-solr\build.xml:309: The following error > >> occurred while executing this line: > >> ${user.home}\git\lucene-solr\lucene\build.xml:124: The following error > >> occurred while executing this line: > >> ${user.home}\git\lucene-solr\lucene\common-build.xml:424: > >> ${user.home}\.ant\lib does not exist. > >> > >> Total time: 0 seconds > >> > >> Any Idea? > >> How can I run solr server In debug mode. > >> > >> Here is the thing I am trying to do, > >> Change a custom plugin called solrTextTagger > >> <https://github.com/OpenSextant/SolrTextTagger>and add some extra > >> query parameters to it. > >> > >> I defined my custom handler in the following way > >> > >> - <requestHandler name="/custom" > >> class="org.opensextant.solrtexttagger.TaggerRequestHandler"> > >> > >> </requestHandler> > >> > >> - And I defined my custom handler jar file location location in > >> solrschema.xml in the following way > >> > >> <lib dir="${user.home}/git/SolrTextTagger/target"/> > >> (solr-text-tagger.jar > >> location) > >> > >> - I made some changes to the solrTextTagger, > >> <https://github.com/OpenSextant/SolrTextTagger> And built a jar > using > >> maven. > >> - I am running solr as a service. And sending a request using HTTP > Post > >> method. > >> - But the problem is how can I debug solr-text-tagger.jar code to > check > >> and make changes. (I mean how to do remote debugging?) > >> > >> > >> I am using eclipse IDE for development. > >> I found similar problem here > >> <http://lucene.472066.n3.nabble.com/Custom-processing- > >> in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>. > >> But I could not understand the solution. > >> > >> .Best, > >> Srini Sampth. > >> > >> > >> > >> > >> > >> On Thu, Sep 21, 2017 at 8:51 PM, Erick Erickson > >> <erickerick...@gmail.com> > >> wrote: > >> > >> > And did you follow the link provided on that page? > >> > > >> > Best, > >> > Erick > >> > > >> > On Thu, Sep 21, 2017 at 3:07 AM, Aman Tandon > >> > <amantandon...@gmail.com> > >> > wrote: > >> > > Hi Srini, > >> > > > >> > > Kindly refer to the READ.ME section of this link of GitHub, this > >> should > >> > > work. > >> > > https://github.com/apache/lucene-solr/blob/master/README.md > >> > > > >> > > With regards, > >> > > Aman Tandon > >> > > > >> > > > >> > > On Sep 21, 2017 1:53 PM, "srini sampath" > >> > > <sampathsrini.c...@gmail.com> > >> > > wrote: > >> > > > >> > >> Hi, > >> > >> How to build and compile solr in my locale machine? it seems the > >> > >> https://wiki.apache.org/solr/HowToCompileSolr page became > obsolete. > >> > >> Thanks in advance > >> > >> > >> > > >> >