Regain 2.0.0

Suggestions, questions oder problems with regain

Moderator: thtesche

Regain 2.0.0

Postby benjamin » Mon Feb 04, 2013 1:06 pm

2012-12-06, Benjamin Pick, Thomas Tesche
Version 2.0.0 STABLE has been released

Try all other preparators in case the designated preperator doesn't work
Allow more than one wildcard mime declarations (positiv, negativ). Example: mimetype:"text/*" -mimetype:"text/plain"
HtmlPreparator: Follows links in framesets
JavaPreperator: Enums will be parsed as well (Enum name and constants will be extracted)
MP3Peparator works GenericAudioPreparator could handle read only files
IndexWriterManager: Close all files to prevent for "Too many open files..." and "this IndexReader is closed" error
benjamin
 
Posts: 65
Joined: Wed May 25, 2011 9:19 am

Re: Regain 2.0.0

Postby benjamin » Mon Feb 04, 2013 1:07 pm

Known bug in 2.0.0: Multiple Indeces doesn't work (see http://forum.murfman.de/de/viewtopic.ph ... 186&p=3643). Is already fixed in SVN for next version, until then use v1.8.0
benjamin
 
Posts: 65
Joined: Wed May 25, 2011 9:19 am

Re: Regain 2.0.0

Postby ikkysleepy » Mon Feb 04, 2013 6:48 pm

I have 10 indexes that are merged into one large index and I get the Write error "Writing results failed (Creating index searcher failed)", is this the same issue?


Code: Select all
  Stacktrace:
  Error message:net.sf.regain.util.sharedtag.taglib.ExtendedJspException: Writing results failed (Creating index searcher failed)
   at net.sf.regain.util.sharedtag.taglib.SharedTagWrapperTag.doEndTag(SharedTagWrapperTag.java:172)
   at org.apache.jsp.search_jsp._jspx_meth_search_005fstats_005ffrom_005f0(search_jsp.java:635)
   at org.apache.jsp.search_jsp._jspService(search_jsp.java:307)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:680)
Caused by: net.sf.regain.RegainException: Creating index searcher failed
   at net.sf.regain.search.IndexSearcherManager.getIndexSearcher(IndexSearcherManager.java:415)
   at net.sf.regain.search.results.SearchResultsImpl.<init>(SearchResultsImpl.java:183)
   at net.sf.regain.search.SearchToolkit.getSearchResults(SearchToolkit.java:304)
   at net.sf.regain.search.sharedlib.stats.FromTag.printEndTag(FromTag.java:57)
   at net.sf.regain.util.sharedtag.taglib.SharedTagWrapperTag.doEndTag(SharedTagWrapperTag.java:166)
   ... 20 more
Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized format -3 in file "_g.fnm"
   at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
   at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
   at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReader.java:118)
   at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:578)
   at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:556)
   at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:113)
   at org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:29)
   at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:81)
   at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:736)
   at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:428)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:288)
   at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:97)
   at net.sf.regain.search.IndexSearcherManager.getIndexSearcher(IndexSearcherManager.java:413)
   ... 24 more
ikkysleepy
 
Posts: 22
Joined: Thu Oct 07, 2010 7:41 pm

Re: Regain 2.0.0

Postby benjamin » Mon Feb 04, 2013 7:34 pm

Not very likely. It rather seems like a lucene version incompability. Did you delete the old lucene-3.1-*.jar from the deployed app? Was the index created by the same lucene version as the search uses?
benjamin
 
Posts: 65
Joined: Wed May 25, 2011 9:19 am

Re: Regain 2.0.0

Postby ikkysleepy » Tue Feb 12, 2013 8:13 pm

Yes, I have lucene-3.6.0 jar files and I even re-did all the indexes with regain 2.0. I'll re-do the index again and merge two indexes and see if that helps.
ikkysleepy
 
Posts: 22
Joined: Thu Oct 07, 2010 7:41 pm


Return to regain

Who is online

Users browsing this forum: No registered users and 2 guests

cron