You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by WATHELET Thomas <th...@europarl.europa.eu> on 2007/02/28 16:19:33 UTC
RamDirectory vs IndexWriter
I don't really understand the difference between using the ramDirectory
and using IndexWriter.
What's the difference between using ramDirectory instead of using
IndexWriter with those properties set to:
setMergeFactor(1000);setMaxMergeDocs(10000);setMaxBufferedDocs(10000);
Re: RamDirectory vs IndexWriter
Posted by Erick Erickson <er...@gmail.com>.
I guess it depends upon your goal. If you're asking what the difference
between writing to a RAMDirectory *then* flushing to an FSDIrectory,
I don't believer there's much, if any. As I remember (and my memory
isn't always...er...accurate), there's been discussion on this thread
by those who know that underneath the covers an FSDirecotyr
uses a RAMDirectory for a while, then flushes it to disk.
If you're asking what the difference between a RAMDirectory is
and an FSDirectory, that's another story.
Erick
On 2/28/07, WATHELET Thomas <th...@europarl.europa.eu> wrote:
>
> I don't really understand the difference between using the ramDirectory
> and using IndexWriter.
>
> What's the difference between using ramDirectory instead of using
> IndexWriter with those properties set to:
> setMergeFactor(1000);setMaxMergeDocs(10000);setMaxBufferedDocs(10000);
>
>
Re: RamDirectory vs IndexWriter
Posted by Nicolas Lalevée <ni...@anyware-tech.com>.
Le Mercredi 28 Février 2007 16:19, WATHELET Thomas a écrit :
> I don't really understand the difference between using the ramDirectory
> and using IndexWriter.
>
> What's the difference between using ramDirectory instead of using
> IndexWriter with those properties set to:
> setMergeFactor(1000);setMaxMergeDocs(10000);setMaxBufferedDocs(10000);
The two classes are not designed to accomplish the same feature. The
IndexWriter write documents in a Directory. And a RAMDirectory is a special
implementation of a Directory which is holding the data in RAM, rather than
holding them on a file system like the FSDirectory.
--
Nicolas LALEVÉE
Solutions & Technologies
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org