Re: RAMDirectory vs FSDirectory

2007-11-27 Thread German Kondolf
There is a constructor in the RAMDirectory that already does that. http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/store/RAMDirectory.html I don't think that worth modify the internal Lucene's code to achieve a extra bit of performance... What would you do on next version? Modify it agai

Re: RAMDirectory vs FSDirectory

2007-11-27 Thread Grant Ingersoll
RAMDirectory has a constructor that takes in another Directory and loads it into memory. No Serialization necessary. Just index to a FSDirectory using Lucene's normal indexing methods (it takes care of buffering them internally) and then load the FSDirectory into a RAMDirectory. Have a l

Re: RAMDirectory vs FSDirectory

2007-11-27 Thread Haroldo Nascimento
You can serialize this object RAMDirectory em disk. When start the application , it read the file .ser and load the object in memory. The time of load of file .ser is much fast. You need change any classes of Lucece: Add the "implements Serialzable" in any classes. On Nov 27, 2007 4:28 AM, Chhab

RE: RAMDirectory vs FSDirectory

2007-11-26 Thread Chhabra, Kapil
> one can improve search performance by using a RAMDirectory created from an underlying FSDirectory using one of the parameterised constructors. Is this correct? Absolutly > Will a FSDirectory not automatically load the index into memory provided enough RAM is available? Not all index files are