I replaced lucene-core-2.1.0.jar and lucene-misc-2.1.0 with lucene-core-2.4.0.jar and lucene-misc-2.4.0? under? nutch-0.9/lib and run ant in nutch directory. However, got 2 compile errors indexer.FsDirectory.DfsIndexOutput is not abstract and does not override abstract method flashBuffer ...
Thanks. Alex. -----Original Message----- From: Lyndon Maydwell <maydw...@gmail.com> To: nutch-user@lucene.apache.org Sent: Fri, 13 Mar 2009 9:24 pm Subject: Re: error after adding indexes manually Well if your index has already been converted to 2.4 format you will either have to rebuild your index, or use 2.4 in Nutch. That's what I've found anyway. Correct me if I'm on the wrong track guys :) On Sat, Mar 14, 2009 at 1:19 PM, <alx...@aim.com> wrote: > > ? I get the same error message when I click lucene-core-2.1.0.jar > > > > > > > > -----Original Message----- > From: Lyndon Maydwell <maydw...@gmail.com> > To: nutch-user@lucene.apache.org > Sent: Fri, 13 Mar 2009 8:20 pm > Subject: Re: error after adding indexes manually > > > > > > > > > > > I just checked. (I usually just have the trunk source). > > Nutch 0.9 used lucene-core-2.1.0.jar. > > When I've encountered this problem I've solved it in two ways. Either > upgrading the version of lucene in nutch (will probably require > rebuilding the indexes). Or replacing the version in Luke, etc. > > You're probably safer replacing it in the index editing utility. > > On Sat, Mar 14, 2009 at 10:33 AM, ?<alx...@aim.com> wrote: >> >> ?btw, which version of lucene is in nutch-0.9? >> >> Thanks. >> Alex. >> >> >> >> >> >> >> >> -----Original Message----- >> From: Lyndon Maydwell <maydw...@gmail.com> >> To: nutch-user@lucene.apache.org >> Sent: Fri, 13 Mar 2009 5:14 pm >> Subject: Re: error after adding indexes manually >> >> >> >> >> >> >> >> >> >> >> What versions of Lucene are Nutch and Luke using? When you play with >> the index you should ensure that the version of Lucene being used is >> the same as what Nutch is using. >> >> On Sat, Mar 14, 2009 at 8:41 AM, ?<alx...@aim.com> wrote: >>> >>> >>> >>> Hello, >>> >>> I used? lukeall-0.9.1.jar to manually add a new? record? to index? produced? >> by? nutch-0.9.? I? added only url and title fields, since I was not sure what > to >> put on the other fields. Now for? search of any word I get this error >>> >>> >>> HTTP Status 500 - >>> >>> >>> >>> type Exception report >>> >>> message >>> >>> description The server encountered an internal error () that prevented it > from >> fulfilling this request. >>> >>> exception >>> >>> org.apache.jasper.JasperException: java.io.IOException: Unknown format >> version: -7 >>> ? >>> ?org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) >>> ? >>> ?org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper..java:404) >>> ? ?org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >>> ? ?org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >>> ? ?javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> >>> >>> root cause >>> >>> java.io.IOException: Unknown format version: -7 >>> ? ?org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:195) >>> ? ?org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:152) >>> ? >>> ?org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:579) >>> ? ?org.apache.lucene.index.IndexReader.open(IndexReader.java:147) >>> ? ?org.apache.lucene.index.IndexReader.open(IndexReader.java:142) >>> ? ?org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher..java:71) >>> ? ?org.apache.nutch.searcher.NutchBean.init(NutchBean.java:119) >>> ? ?org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:106) >>> ? ?org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:84) >>> ? ?org.apache.nutch.searcher.NutchBean.get(NutchBean.java:71) >>> ? ?org.apache.jsp.search_jsp._jspService(search_jsp.java:112) >>> ? ?org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >>> ? ?javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> ? >>> ?org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper..java:374) >>> ? ?org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >>> ? ?org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >>> ? ?javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> >>> Why unknown ?format? Any idea what went wrong? >>> >>> Thanks. >>> Alex. >>> >>> >>> >>> >>> >> bt >> >> >> >> >> > > > > > >