comparison 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
comparison
equal deleted inserted replaced
1:7c64173643c8 2:fc2383eb48a9
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local Lucene = require "luan:lucene/Lucene.luan"
4 local Io = require "luan:Io.luan"
5 local uri = Io.uri or error()
6
7
8 local dir = uri("site:/private/local/lucene")
9
10 local Db = Lucene.index( dir, {} )
11
12 return Db