lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Can you create a RAM index from a file index
Date Tue, 24 Mar 2009 09:55:14 GMT
Hi


You can load an existing index into a RAMDirectory using one of the
constructors that takes an existing index.  I believe that a RAM index
will be the same size as a file based index.

MMapDirectory is another possibility.


--
Ian.



On Tue, Mar 24, 2009 at 8:42 AM, Paul Taylor <paul_t100@fastmail.fm> wrote:
> Hi
>
> Ive built some file based indexes based on data in a database, and it took
> quite some time.
> I am interested in trying to use RAM based indexes instead of file based
> indexes to compare search performance but its going to take some time to
> rebuild the index from the original database, isnt it possible to rebuild
> the index from the file based index ?
> How big is a RAM index compared to File based index, I assumming its
> slightly smaller because no files are created ?
>
> thanks Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message