view src/lib/Db.luan @ 3:fc3ee39d7764

login
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 19 Jun 2022 20:47:31 -0600
parents fc2383eb48a9
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