{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1042","labels_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1042/labels{/name}","comments_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1042/comments","events_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1042/events","html_url":"https://github.com/OpenGrok/OpenGrok/issues/1042","id":126932536,"number":1042,"title":"Lucene errors with latest opengrok source (Did you forget to add lucene-backward-codecs.jar?)","user":{"login":"ebukoski","id":10875265,"avatar_url":"https://avatars.githubusercontent.com/u/10875265?v=3","gravatar_id":"","url":"https://api.github.com/users/ebukoski","html_url":"https://github.com/ebukoski","followers_url":"https://api.github.com/users/ebukoski/followers","following_url":"https://api.github.com/users/ebukoski/following{/other_user}","gists_url":"https://api.github.com/users/ebukoski/gists{/gist_id}","starred_url":"https://api.github.com/users/ebukoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebukoski/subscriptions","organizations_url":"https://api.github.com/users/ebukoski/orgs","repos_url":"https://api.github.com/users/ebukoski/repos","events_url":"https://api.github.com/users/ebukoski/events{/privacy}","received_events_url":"https://api.github.com/users/ebukoski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T18:46:53Z","updated_at":"2016-01-15T18:46:53Z","closed_at":null,"body":"I upgraded to the latest OpenGrok built directly from source.  Previously I was running that latest release version (0.12.1.5).  When I point the latest OpenGrok to the old index i get the stack trace below.\r\n\r\nIs there a way to migrate the index after an upgrade or is a complete re-index the only solution here?  A complete reindex takes days for us.  BTW I tried adding  lucene-backward-codecs.jar but it didn't help.\r\n\r\n```\r\njava.lang.IllegalArgumentException: Could not load codec 'Lucene46'.  Did you forget to add lucene-backward-codecs.jar?\r\n\tat org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:481)\r\n\tat org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:361)\r\n\tat org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:53)\r\n\tat org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:50)\r\n\tat org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:731)\r\n\tat org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:50)\r\n\tat org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)\r\n\tat org.opensolaris.opengrok.web.SearchHelper.prepareExec(SearchHelper.java:261)\r\n\tat org.apache.jsp.search_jsp._jspService(search_jsp.java:158)\r\n\tat org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:723)\r\n\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)\r\n\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)\r\n\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:723)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\r\n\tat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)\r\n\tat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene46' does not exist.  You need to add the corresponding JAR file supporting this SPI to your classpath.  The current classpath supports the following names: [Lucene54]\r\n\tat org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)\r\n\tat org.apache.lucene.codecs.Codec.forName(Codec.java:113)\r\n\tat org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:469)\r\n\t... 27 more\r\n```"}}