Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-12 Thread Erick Erickson
I'm not at all sure this is true. We all start by thinking "of course if the entire directory were in RAM it would be faster". But lots of work has gone into making efficient use of RAM for things like caches etc. So it may not make any difference. But that doesn't mean you can't try. It's trivial

Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-11 Thread Ian Lea
Start by reading the javadocs for RAMDirectory. -- Ian. On Tue, Oct 12, 2010 at 6:39 AM, wrote: > > I am also having a similar requirement .But its other way round. > > Basically ,I have indexes in FSDirectory and which is transferred to > another machine on regular basis. But now for the rea

Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-11 Thread suman.holani
I am also having a similar requirement .But its other way round. Basically ,I have indexes in FSDirectory and which is transferred to another machine on regular basis. But now for the reason of faster searches, it would be better to copy the indexes onto RAM. (RAMDirectory). Not sure of how it c