lucene 4: don't restrict ram buffer to 2GB this lucene restriction was removed with DWPT

This commit is contained in:
Simon Willnauer 2012-10-29 11:45:59 +01:00 committed by Shay Banon
parent d4e4b5d9f4
commit 0c1778a033
1 changed files with 1 additions and 6 deletions

View File

@ -188,12 +188,7 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine {
ByteSizeValue preValue = this.indexingBufferSize;
rwl.readLock().lock();
try {
// LUCENE MONITOR - If this restriction is removed from Lucene, remove it from here
if (indexingBufferSize.mbFrac() > 2048.0) {
this.indexingBufferSize = new ByteSizeValue(2048, ByteSizeUnit.MB);
} else {
this.indexingBufferSize = indexingBufferSize;
}
this.indexingBufferSize = indexingBufferSize;
IndexWriter indexWriter = this.indexWriter;
if (indexWriter != null) {
indexWriter.getConfig().setRAMBufferSizeMB(this.indexingBufferSize.mbFrac());