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
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
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