diff src/luan/modules/lucene/Lucene.luan @ 1088:bae2d0c2576c

change module naming convention
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 26 Dec 2016 22:29:36 -0700
parents 6b8ea0a9b7c9
children 3234a14bb1f8
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan	Mon Dec 19 01:38:21 2016 -0700
+++ b/src/luan/modules/lucene/Lucene.luan	Mon Dec 26 22:29:36 2016 -0700
@@ -18,11 +18,11 @@
 local EnglishAnalyzer = require "java:org.apache.lucene.analysis.en.EnglishAnalyzer"
 
 
-local M = {}
+local Lucene = {}
 
-M.instances = {}
+Lucene.instances = {}
 
-M.type = {
+Lucene.type = {
 	string = LuceneIndex.STRING_FIELD_PARSER;
 	integer = NumberFieldParser.INT;
 	long = NumberFieldParser.LONG;
@@ -31,9 +31,9 @@
 	english = StringFieldParser.new(EnglishAnalyzer.new(Version.LUCENE_CURRENT))
 }
 
-M.literal = SaneQueryParser.literal
+Lucene.literal = SaneQueryParser.literal
 
-function M.index(index_dir,default_type,default_fields)
+function Lucene.index(index_dir,default_type,default_fields)
 	local index = {}
 	index.dir = index_dir
 	local java_index = LuceneIndex.new(index_dir,default_type,default_fields)
@@ -66,10 +66,10 @@
 	index.next_id = java_index.nextId
 	index.highlighter = java_index.highlighter
 
-	M.instances[index] = true
+	Lucene.instances[index] = true
 
 	function index.close()
-		M.instances[index] = nil
+		Lucene.instances[index] = nil
 		java_index.close()
 	end
 
@@ -169,4 +169,4 @@
 	return index
 end
 
-return M
+return Lucene