changeset 1224:4416b9cbebf9

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 27 Mar 2018 16:13:22 -0600
parents c7adcdf79bf2
children 7d4b5afb636f
files examples/blog/src/lib/Db.luan examples/blog/src/lib/test.luan
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
diff -r c7adcdf79bf2 -r 4416b9cbebf9 examples/blog/src/lib/Db.luan
--- a/examples/blog/src/lib/Db.luan	Sun Mar 25 17:38:16 2018 -0600
+++ b/examples/blog/src/lib/Db.luan	Tue Mar 27 16:13:22 2018 -0600
@@ -4,7 +4,7 @@
 
 local Db = {}
 
-function Db.new_db(lucene_dir)
+function Db.new(lucene_dir)
 	local dir = Io.uri(lucene_dir).to_string()
 	local db = Lucene.index( dir, Lucene.type.english, {"subject","content"} )
 	
@@ -14,6 +14,6 @@
 	return db
 end
 
-Db.db = Db.new_db("site:/private/local/lucene")
+Db.db = Db.new("site:/private/local/lucene")
 
 return Db
diff -r c7adcdf79bf2 -r 4416b9cbebf9 examples/blog/src/lib/test.luan
--- a/examples/blog/src/lib/test.luan	Sun Mar 25 17:38:16 2018 -0600
+++ b/examples/blog/src/lib/test.luan	Tue Mar 27 16:13:22 2018 -0600
@@ -11,7 +11,7 @@
 local matches = String.matches or error()
 
 local Db = require "site:/lib/Db.luan"
-Db.db = Db.new_db("site:/private/local/lucene_test")
+Db.db = Db.new("site:/private/local/lucene_test")
 Db.db.delete_all()
 
 local Post = require "site:/lib/Post.luan"