diff src/luan/modules/lucene/LuceneIndex.java @ 1763:164c6ea53147

fix change_password
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 22 May 2023 19:21:14 -0600
parents d1e7564a9ce5
children 527c53b91a50
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java	Fri May 19 18:08:46 2023 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Mon May 22 19:21:14 2023 -0600
@@ -416,6 +416,14 @@
 		super.finalize();
 	}
 
+	public void close_down() throws IOException {
+		String key = indexDir.getCanonicalPath();
+		synchronized(indexes) {
+			indexes.remove(key);
+		}
+		close();
+	}
+
 	public void close() throws IOException {
 		closeWriter();
 		reader.close();