From 7a1d6b165a68b48ce47346769582fe9aca20a7c0 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 24 Apr 2020 13:37:41 +0200 Subject: [PATCH] Optimizing index at end of indexing process --- .../src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt index bbbfca59..99f55a47 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt @@ -141,6 +141,8 @@ open class LuceneBankFinder(indexFolder: File) : BankFinderBase(), IBankFinder { writer.updateDocument(IndexedBankListFileHashIdFieldName, IndexedBankListFileHashIdFieldValue, fields.storedField(IndexedBankListFileHashFieldName, bankListFileHash) ) + + writer.optimizeIndex() } }