Mercurial Hosting > luan
diff examples/blog/src/lib/Db.luan @ 1369:709f7498a363
change Lucene.index() and add Lucene.recover()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 19 Jun 2019 00:26:10 -0600 |
parents | 4416b9cbebf9 |
children | bc40bc9aab3a |
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan Tue Jun 18 21:56:53 2019 -0600 +++ b/examples/blog/src/lib/Db.luan Wed Jun 19 00:26:10 2019 -0600 @@ -5,7 +5,7 @@ local Db = {} function Db.new(lucene_dir) - local dir = Io.uri(lucene_dir).to_string() + local dir = Io.uri(lucene_dir) local db = Lucene.index( dir, Lucene.type.english, {"subject","content"} ) -- this is how you index a field