Je pense mettre mal exprimée. Dans les 2 cas j'utilise la classe IndexWriter mais dans un cas je l'utilise avec un RamDirectory et dans l'autre avec FSDirecory (index=new IndexWriter(ram OR fsdir,analyser,true)) Si j'utilise la classe ramDirectory c'est pour éviter l'accès disque fréquent. Mais j'ai constatée quand utilisant FSDirecory et en paramettrant les setMergeFactor(1000);setMaxMergeDocs(10000);setMaxBufferedDocs(10000) j'ai plus ou moin le même comportement. Suis-je dans le bon chemin.
-----Original Message----- From: Nicolas Lalevée [mailto:[EMAIL PROTECTED] Sent: 28 February 2007 16:29 To: java-user@lucene.apache.org Subject: Re: RamDirectory vs IndexWriter 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]