diff src/luan/modules/lucene/Lucene.luan @ 1365:6617763dfd76

fix logging and lucene backup
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 12 Jun 2019 22:16:10 -0600
parents 8d95711f6615
children 836e00bf7ce2
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan	Wed May 29 19:03:25 2019 -0600
+++ b/src/luan/modules/lucene/Lucene.luan	Wed Jun 12 22:16:10 2019 -0600
@@ -4,6 +4,7 @@
 local ipairs = Luan.ipairs or error()
 local type = Luan.type or error()
 local set_metatable = Luan.set_metatable or error()
+local Boot = require "luan:Boot.luan"
 local Html = require "luan:Html.luan"
 local Io = require "luan:Io.luan"
 local uri = Io.uri or error()
@@ -138,6 +139,7 @@
 			end
 		end )
 	end
+	index.zip = Boot.no_security(index.zip)
 
 	function index.restore(zip_file)
 		java_index.run_in_lock( function()
@@ -150,6 +152,7 @@
 			java_index.reopen()
 		end )
 	end
+	index.restore = Boot.no_security(index.restore)
 
 	local function multi_error()
 		error "multiple lucene instances"