I get the following error trace - java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@/Users/projects/workspace/project_name/web/file:/Users/.m2/repository/com/mycompany/project_name/2.1.0-internal-65-SNAPSHOT/suggesters-2.1.0-internal-65-SNAPSHOT.jar!/luceneFiles/index: files: at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:587)
The crux of the issue seems to be that lucene cannot open segments file that is inside the jar (under luceneFiles/index directory) The current project structure involves creating module jars in maven and having a web tier module use the lucene module jar. The index files are built at build time as part of lucene module project. The issue with building the index separate from the application is that a bunch of unit/integration/functional tests depend on index files to be created. The manual step of creating the index files breaks the automated CI builds or some reliance on building the index in some tmp directory. Unfortunately that approach has issues if we run tests concurrently. Also, building the index takes a couple of minutes, so generating them on the fly for tests is expensive and increases the build time. The only options suggested in the forums is to do something special like extending the Directory class to open the jar. Is there another way to solve this problem in an easier manner or am i missing something simple ? Any thoughts/suggestions are appreciated, Ravi -- View this message in context: http://www.nabble.com/Opening-an-index-directory-inside-a-jar-tp17526678p17526678.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]