diff src/lib/Db.luan @ 2:fc2383eb48a9

set config
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 16 Jun 2022 20:52:24 -0600
parents
children fc3ee39d7764
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib/Db.luan	Thu Jun 16 20:52:24 2022 -0600
@@ -0,0 +1,12 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+local Lucene = require "luan:lucene/Lucene.luan"
+local Io = require "luan:Io.luan"
+local uri = Io.uri or error()
+
+
+local dir = uri("site:/private/local/lucene")
+
+local Db = Lucene.index( dir, {} )
+
+return Db