changeset 1676:daa4214fa91a

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 30 May 2022 19:29:32 -0600
parents 445048f9eca7
children ea7075b7afe1
files src/luan/modules/lucene/LuceneIndex.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 445048f9eca7 -r daa4214fa91a src/luan/modules/lucene/LuceneIndex.java
--- a/src/luan/modules/lucene/LuceneIndex.java	Mon May 30 17:50:54 2022 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Mon May 30 19:29:32 2022 -0600
@@ -109,7 +109,7 @@
 				LuceneIndex li = ref.get();
 				if( li != null ) {
 					Object version = options.get(luan,"version");
-					if( version==null || version.equals(li.version) )
+					if( (version==null || version.equals(li.version)) && li.indexDir.exists() )
 						return li;
 					li.closeWriter();
 				}