Re: lucene ram buffering

2008-09-05 Thread 叶双明
IndexWriter.setRAMBufferSizeMB() Determines the amount of RAM that may be used for buffering added documents before they are flushed as a new Segment. Does it related to IndexSearcher? And IndexSearcher hasn't setRAMBufferSizeMB() method, mean we can't control the amount of RAM that may be used fo

lucene ram buffering

2008-09-04 Thread Cam Bazz
hello, I was reading the performance optimization guides then I found : writer.setRAMBufferSizeMB() combined with: writer.setMaxBufferedDocs(IndexWriter.DISABLE_AUTO_FLUSH); this can be used to flush automatically so if the ram buffer size is over a certain limit it will flush. now the question: