Mercurial Hosting > luan
diff src/luan/modules/lucene/Versioning.luan @ 1088:bae2d0c2576c
change module naming convention
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Dec 2016 22:29:36 -0700 |
parents | 1a68fc55a80c |
children | 7f4a12fb7716 |
line wrap: on
line diff
--- a/src/luan/modules/lucene/Versioning.luan Mon Dec 19 01:38:21 2016 -0700 +++ b/src/luan/modules/lucene/Versioning.luan Mon Dec 26 22:29:36 2016 -0700 @@ -17,9 +17,9 @@ local logger = Logging.logger "lucene versioning" -local M = {} +local Versioning = {} -function M.update(db,steps,version) +function Versioning.update(db,steps,version) local doc = db.get_document"type:version" or { type="version", version=integer(0) } while doc.version < version do doc.version = integer(doc.version + 1) @@ -34,7 +34,7 @@ -- hack to deal with latest changes -function M.a_big_step(db) +function Versioning.a_big_step(db) db.indexed_fields["id index"] = Lucene.type.string db.advanced_search( Lucene.literal"id index" .. ":*", function(_,doc_fn) local doc = doc_fn() @@ -53,4 +53,4 @@ db.delete( Lucene.literal"type index" .. ":*" ) end -return M +return Versioning