Mercurial Hosting > luan
diff examples/blog/src/lib/Db.luan @ 1224:4416b9cbebf9
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 27 Mar 2018 16:13:22 -0600 |
parents | 4721c482c86b |
children | 709f7498a363 |
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan Sun Mar 25 17:38:16 2018 -0600 +++ b/examples/blog/src/lib/Db.luan Tue Mar 27 16:13:22 2018 -0600 @@ -4,7 +4,7 @@ local Db = {} -function Db.new_db(lucene_dir) +function Db.new(lucene_dir) local dir = Io.uri(lucene_dir).to_string() local db = Lucene.index( dir, Lucene.type.english, {"subject","content"} ) @@ -14,6 +14,6 @@ return db end -Db.db = Db.new_db("site:/private/local/lucene") +Db.db = Db.new("site:/private/local/lucene") return Db