Mercurial Hosting > freedit
view src/lib/Db.luan @ 9:9674275019bb
reply and edit
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 30 Jun 2022 00:02:28 -0600 |
parents | be36282b556a |
children | de0cbf515ef5 |
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 Db.indexed_fields.post_author_id = Lucene.type.long Db.indexed_fields.post_author_name = Lucene.type.string Db.indexed_fields.post_is_root = Lucene.type.string Db.indexed_fields.post_root_id = Lucene.type.long return Db