lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen" <cdor...@gmail.com>
Subject Re: Opening an index directory inside a jar
Date Mon, 02 Jun 2008 04:36:29 GMT
>
> : The crux of the issue seems to be that lucene cannot open segments file
> that
> : is inside the jar (under luceneFiles/index directory)
>
> i'm not entirely sure why it would have problems finding the segments
> file, but a larger problem is that Lucene needs random access which (last
> time i checked) isn't available when accessing files in jars...
>
>
> http://www.nabble.com/Accessing-Lucene-Index-stored-in-a-jar-file-to3009604.html
>

I bumped into (though never used)
http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs/provider/jar/JarFileSystem.html
There, FileContent has this method
getRandomAccessContent(org.apache.commons.vfs.util.RandomAccessMode)
so it seems worth exploring.

HTH,
Doron

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message