diff examples/blog/src/lib/Db.luan @ 1387:bc40bc9aab3a

start postgres backup
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 02 Sep 2019 22:23:12 -0600
parents 709f7498a363
children 2024d23ddd64
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan	Thu Aug 22 12:32:20 2019 -0600
+++ b/examples/blog/src/lib/Db.luan	Mon Sep 02 22:23:12 2019 -0600
@@ -4,9 +4,13 @@
 
 local Db = {}
 
+local function completer(doc)
+	return doc
+end
+
 function Db.new(lucene_dir)
 	local dir = Io.uri(lucene_dir)
-	local db = Lucene.index( dir, Lucene.type.english, {"subject","content"} )
+	local db = Lucene.index( dir, Lucene.type.english, {"subject","content"}, completer )
 	
 --	this is how you index a field
 --	db.indexed_fields.post_date = Lucene.type.long