Re: How to close the wrapped directory implementation

2010-09-20 Thread Sanne Grinovero
2010/9/18 Pulkit Singhal : > With RAMDirectory we have the option of providing another Directory > implementation such as FSDirectory that can be wrapped and loaded into > memory: > > Directory directory = new RAMDirectory(FSDirectory.open(new > File(fileDirectoryName))); > > But after building the

Re: Use of SimpleStringInterner in non Lucene App

2010-09-20 Thread Paul Taylor
Paul Taylor wrote: Im currently using String.intern() in my app purely to reduce the memory usage, this has worked well except the memory required for intern() go into perm rather than heap, setting perm on different platforms is on trivial so Im looking for a solution that works on Heap. (Now

Checksum and transactional safety for lucene indexes

2010-09-20 Thread Pulkit Singhal
Hello Everyone, What happens if: a) lucene index gets written half-way to the disk and then something goes wrong? b) the index gets corrupted on the file system? When we open that directory location again using FSDirectory implementations: a) Is there any provision for the code to clean out the p

Re: Checksum and transactional safety for lucene indexes

2010-09-20 Thread Lance Norskog
If an index file is not completely written to disk, it never become available. Lucene has a file describing the current active index segments. It writes all new files to the disk, and changes the description file (segments.gen) only after that. If the index files are corrupted, all bets are of