Mercurial Hosting > luan
comparison src/luan/modules/lucene/Lucene.luan @ 1672:8dd8c556c449
backup work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 26 May 2022 21:10:02 -0600 |
parents | b7f8418fb7ba |
children | 46cf5137cb6b |
comparison
equal
deleted
inserted
replaced
1671:8066b8882732 | 1672:8dd8c556c449 |
---|---|
69 end | 69 end |
70 | 70 |
71 function Lucene.index(index_dir,options) | 71 function Lucene.index(index_dir,options) |
72 local index = {} | 72 local index = {} |
73 local options_name = options.name | 73 local options_name = options.name |
74 options.name = nil | |
75 index.dir = index_dir | 74 index.dir = index_dir |
76 index_dir = get_file(index_dir) | 75 index_dir = get_file(index_dir) |
77 options = options or {} | 76 options = options or {} |
78 options.log_dir = options.log_dir and get_file(options.log_dir) | 77 options.log_dir = options.log_dir and get_file(options.log_dir) |
79 options.log_time = options.log_time or Time.period{days=30} | 78 options.log_time = options.log_time or Time.period{days=30} |