Mercurial Hosting > luan
diff src/luan/modules/lucene/Lucene.luan @ 1398:67c0e47b5be3
more lucene
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 11 Sep 2019 15:48:49 -0600 |
parents | 0dc9837c16be |
children | 27efb1fcbcb5 |
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan Wed Sep 11 01:31:21 2019 -0600 +++ b/src/luan/modules/lucene/Lucene.luan Wed Sep 11 15:48:49 2019 -0600 @@ -70,7 +70,7 @@ index.highlighter = java_index.highlighter index.indexed_only_fields = java_index.indexed_only_fields index.count_tokens = java_index.count_tokens - index.close = java_index.close + --index.close = java_index.close index.has_postgres_backup = java_index.hasPostgresBackup() function index.rebuild_postgres_backup() @@ -186,7 +186,7 @@ local lucene_dir = index.dir local before_restore = lucene_dir.parent().child("before_restore.zip") index.zip(before_restore) - java_index.doClose() + java_index.close() lucene_dir.delete() Io.uri("os:unzip "..zip_file.canonical().to_string(),{dir=lucene_dir.parent()}).read_text() java_index.reopen()