Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Chris Brown
I don't know anything about it, but there's a library called TrueZip (https://truezip.dev.java.net/) that apparently is "a drop-in replacement for the File I/O classes in the J2SE API". Maybe it will allow random access. I heard about on the Java Posse Pod Cast (http://javaposse.com/) Ahmed

Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Ahmed El-dawy
I think it is not an easy task!!! java.util.zip does not support random access to files inside an archive. Lucene Directory requires files inside the directory to be accessed randomely. Does anyone know a library to load archive files and gives a random access to archived files? On 2/19/06, Ahmed

Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Ahmed El-dawy
Thanks for your response. You are both right. As I didn't find an already made implementation for this, I am now working in ZipDirectory class and I will send it to you as I finish it. Thanks alot Ahmed Saad On 2/19/06, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > Try talking to these people: >

Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Otis Gospodnetic
Try talking to these people: http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=jardirectory%20lucene - Original Message From: Ahmed El-dawy <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Saturday, February 18, 2006 3:38:16 PM Subject: Accessing Lucene Index stored in a jar file

RE: Accessing Lucene Index stored in a jar file

2006-02-18 Thread Waleed Tayea
-dawy [mailto:[EMAIL PROTECTED] Sent: Sunday, February 19, 2006 9:06 AM To: java-user@lucene.apache.org Subject: Re: Accessing Lucene Index stored in a jar file I need to access it as it is in the zip file. IndexSearcher cannot be constructed using a zip file or a stream to a file. It can be

Re: Accessing Lucene Index stored in a jar file

2006-02-18 Thread Ahmed El-dawy
I need to access it as it is in the zip file. IndexSearcher cannot be constructed using a zip file or a stream to a file. It can be constructed to either FSDirectory or RAMDirectory. Both are not useful in my case. On 2/19/06, gekkokid <[EMAIL PROTECTED]> wrote: > couldnt you use the java zip libr

Re: Accessing Lucene Index stored in a jar file

2006-02-18 Thread gekkokid
couldnt you use the java zip library (http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-summary.html) and compress and uncompress it separately? just an idea - Original Message - From: "Ahmed El-dawy" <[EMAIL PROTECTED]> To: Sent: Saturday, February 18, 2006 8:38 PM Subjec