RE: Index files in jar

2005-08-30 Thread Chris Hostetter
cene-java-user/200501.mbox/[EMAIL PROTECTED] : Date: Mon, 29 Aug 2005 10:07:47 -0700 : From: Jon Schuster <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: RE: Index files in jar : : Hi Tom, : : You could distribute your index files

Re: index files in jar file

2005-08-30 Thread Miles Barr
On Fri, 2005-08-26 at 16:31 -0400, Thomas Lepkowski wrote: > I have a set of index files that I'd like to distribute with my Java > application. The only way this seems practical is to place the index files > in a jar file. I tries this, but the search choked when I told IndexSearcher > the inde

Re: Index files in jar

2005-08-29 Thread Dan Funk
Why not build a self-extracting jar file and extract the contents of the index to a temp directory? http://www.javaworld.com/javaworld/javatips/jw-javatip120.html Thomas Lepkowski wrote: Hello, I have a set of index files that I'd like to distribute with my Java application. The only way

RE: Index files in jar

2005-08-29 Thread Jon Schuster
Hi Tom, You could distribute your index files in a plain old directory outside of a jar file and install them with your application, then use FSDirectory to read from the installed location. But I can think of at least two ways to get the index files packaged into the application jar. One would b

RE: Index files in jar

2005-08-29 Thread Sale, Doug
this would indeed be useful, it's something i've considered doing as well. i'm assuming a read-only implementation (perhaps with some static method for creating a JAR from an existing Directory); not a concurrently indexed and searched impl. does anybody know of such code, or of any limitation