Consider using SharpZipLib, chock-full of open source goodness. Alternatively, with a little forethought you could roll your own zipper by implementing System.IO.Compression.GZipStream - there are several examples on the net, just fire up your favorite search engine and poke around.
-----Original Message----- From: Andrew Schuler [mailto:[email protected]] Sent: Friday, February 26, 2010 4:48 PM To: [email protected] Subject: Re: Lucene index file container Thanks for both answers on this. I considered a zip file but was unsure of the associated overhead of unpacking file. Does any one have experience running an index directly out of zip file? Are my worries unfounded? I was just trying to leverage the experience of the group, but otherwise I'll just have to run some tests on my own. On Fri, Feb 26, 2010 at 11:55 AM, Nicholas Petersen <[email protected]>wrote: > <Can anyone recommend a way to package the index into say some type of file > container> > > If I understand correctly, it sounds like your asking for a text-book > implementation of an archiver, like a zip file. If so, DotNetZip is a > solid > product, very easy to use, very fast. Highly recommended. > http://www.codeplex.com/DotNetZip. > > Best, > Nick > > > > On Fri, Feb 26, 2010 at 2:47 PM, Andrew Schuler <[email protected] > >wrote: > > > Yes, that is do-able. I was just thinking it would be cleaner to wrap the > > indexes (there will be more than one) in some sort of file container. One > > of > > the things I'd like to do it be able to allow the user to download > > pre-packaged indexes and load them into the app. This would be easy with > a > > file than a directory of files no? > > > > > > On Fri, Feb 26, 2010 at 11:41 AM, Hans Merkl <[email protected]> wrote: > > > > > Can't you add all the files in the index directory to the installer > > > package? > > > This should be pretty straightforward. > > > > > > -----Original Message----- > > > From: Andrew Schuler [mailto:[email protected]] > > > Sent: Friday, February 26, 2010 12:16 PM > > > To: [email protected] > > > Subject: Lucene index file container > > > > > > The discussion about encrypting an index has me thinking about a > current > > > use > > > I have for Lucene.net. I'm building a small app with a static index > > > distributed with it. Can anyone recommend a way to package the index > into > > > say some type of file container for inclusion in an installer package? > > > > > > -andy > > > > > > > > > > > >
