Disable reader pooling

This commit is contained in:
Andrea Cavalli 2021-12-17 23:51:10 +01:00
parent 638595f518
commit 0f62362d21

View File

@ -239,7 +239,7 @@ public class LLLocalLuceneIndex implements LLLuceneIndex {
} else {
indexWriterConfig.setRAMBufferSizeMB(luceneOptions.indexWriterBufferSize() / 1024D / 1024D);
}
//indexWriterConfig.setReaderPooling(false);
indexWriterConfig.setReaderPooling(false);
indexWriterConfig.setSimilarity(getLuceneSimilarity());
this.indexWriter = new IndexWriter(directory, indexWriterConfig);
this.snapshotsManager = new SnapshotsManager(indexWriter, snapshotter);