Mercurial Hosting > disearch
comparison src/lib/Db.luan @ 13:af2b95854072
add server records
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Oct 2023 21:32:42 -0600 |
parents | 43814e9f5802 |
children | 80105b716a62 |
comparison
equal
deleted
inserted
replaced
12:3e2cb946d511 | 13:af2b95854072 |
---|---|
16 local Db = Lucene.index( dir, { | 16 local Db = Lucene.index( dir, { |
17 log_dir = uri("site:/private/local/lucene_log") | 17 log_dir = uri("site:/private/local/lucene_log") |
18 name = "lucene" | 18 name = "lucene" |
19 } ) | 19 } ) |
20 | 20 |
21 Db.indexed_fields.server_owner_discord_id = Lucene.type.string | |
22 | |
21 function Db.not_in_transaction() | 23 function Db.not_in_transaction() |
22 logger.error(new_error("not in transaction")) | 24 logger.error(new_error("not in transaction")) |
23 end | 25 end |
24 | 26 |
25 if Http.is_serving then | 27 if Http.is_serving then |