Mercurial Hosting > freedit
annotate 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 |
rev | line source |
---|---|
2 | 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 | |
3 | 12 Db.indexed_fields.user_email = Lucene.type.lowercase |
13 Db.indexed_fields.user_name = Lucene.type.lowercase | |
14 | |
2 | 15 return Db |