Mercurial Hosting > luan
diff examples/blog/src/lib/Db.luan @ 1696:2958cf04d844
remove postgres backup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 26 Jun 2022 14:40:08 -0600 |
parents | 8dd8c556c449 |
children | fc224a1bb6ea |
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan Mon Jun 20 16:37:23 2022 -0600 +++ b/examples/blog/src/lib/Db.luan Sun Jun 26 14:40:08 2022 -0600 @@ -17,21 +17,16 @@ BackupIndexWriter.backupDomains = {"localhost"} end ---local postgres_spec = Hosted.postgres_spec() ---logger.info(stringify(postgres_spec)) - local dir = uri("site:/private/local/lucene") local Db = Lucene.index( dir, { default_type = Lucene.type.english default_fields = {"subject","content"} - --postgres_spec = postgres_spec log_dir = uri("site:/private/local/lucene_log") } ) -- this is how you index a field -- db.indexed_fields.post_date = Lucene.type.long ---Db.restore_from_postgres() Db.restore_from_log() Db.update{ [1] = function()