Mercurial Hosting > freedit
view 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 source
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