Optimizing index at end of indexing process

This commit is contained in:
dankito 2020-04-24 13:37:41 +02:00
parent c9754535a5
commit 7a1d6b165a
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ open class LuceneBankFinder(indexFolder: File) : BankFinderBase(), IBankFinder {
writer.updateDocument(IndexedBankListFileHashIdFieldName, IndexedBankListFileHashIdFieldValue, writer.updateDocument(IndexedBankListFileHashIdFieldName, IndexedBankListFileHashIdFieldValue,
fields.storedField(IndexedBankListFileHashFieldName, bankListFileHash) fields.storedField(IndexedBankListFileHashFieldName, bankListFileHash)
) )
writer.optimizeIndex()
} }
} }