You'll have to implement org.apache.lucene.store.Directory to load the index from the JAR file. Take a look at FSDirectory and RAMDirectory for some more details.
Then you have either load the JAR file with java.util.jar.JarFile to get to the files or you can use Classloader#getResourceAsStream to get to them.
The problem is that a jar file entry becomes an InputStream, but InputStream is not random access, and Lucene requires random access. So you need to extract the index either to disk or RAM in order to get random access. I think folks have posted code for this to the list previously.
Doug
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]