Mercurial Hosting > luan
diff src/luan/modules/lucene/Lucene.luan @ 1548:736ec76bbf42
lucene log work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 27 Sep 2020 22:07:18 -0600 |
parents | 35601f15ecc3 |
children | 52241b69c339 |
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan Thu Sep 24 15:33:56 2020 -0600 +++ b/src/luan/modules/lucene/Lucene.luan Sun Sep 27 22:07:18 2020 -0600 @@ -9,6 +9,7 @@ local Html = require "luan:Html.luan" local Number = require "luan:Number.luan" local integer = Number.integer or error() +local Time = require "luan:Time.luan" local Io = require "luan:Io.luan" local uri = Io.uri or error() local String = require "luan:String.luan" @@ -46,6 +47,7 @@ index_dir = get_file(index_dir) options = options or {} options.log_dir = options.log_dir and get_file(options.log_dir) + options.log_time = options.log_time or Time.period{days=30} local java_index = LuceneIndex.getLuceneIndex(index_dir,options) index.java = java_index