From 98e086415ca00cdc1b63380bb15772e9dabc15b2 Mon Sep 17 00:00:00 2001 From: schuemie Date: Fri, 10 May 2019 10:05:15 -0400 Subject: [PATCH] Modifying memory limit for Lucene indexing --- src/org/ohdsi/usagi/UsagiSearchEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ohdsi/usagi/UsagiSearchEngine.java b/src/org/ohdsi/usagi/UsagiSearchEngine.java index 00acb6f..fd0c55f 100644 --- a/src/org/ohdsi/usagi/UsagiSearchEngine.java +++ b/src/org/ohdsi/usagi/UsagiSearchEngine.java @@ -119,7 +119,7 @@ public void createNewMainIndex() { IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_4_9, new UsagiAnalyzer()); iwc.setOpenMode(OpenMode.CREATE); - iwc.setRAMBufferSizeMB(256.0); + iwc.setRAMBufferSizeMB(128.0); writer = new IndexWriter(dir, iwc); } catch (Exception e) {