Mercurial Hosting > freedit
view src/lib/Db.luan @ 5:2f20b11affdd
add tools
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Jun 2022 21:39:27 -0600 |
parents | fc3ee39d7764 |
children | be36282b556a |
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, {} ) Db.indexed_fields.user_email = Lucene.type.lowercase Db.indexed_fields.user_name = Lucene.type.lowercase return Db