diff lucene/src/luan/modules/lucene/Web_search.luan @ 505:7bc63886d4f2

web page modules now return a function
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 May 2015 01:45:49 -0600
parents 92c3d22745b8
children 1b2e4c7dab85
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Web_search.luan	Thu May 21 01:09:35 2015 -0600
+++ b/lucene/src/luan/modules/lucene/Web_search.luan	Thu May 21 01:45:49 2015 -0600
@@ -122,7 +122,7 @@
 
 function M.of(index)
 
-	return { respond = function()
+	return function()
 		Io.stdout = Http.response.text_writer()
 		local query_string = Http.request.parameter.query
 		if query_string == nil then
@@ -145,7 +145,7 @@
 			end
 			result(query,sort,headers,table)
 		end )
-	end }
+	end
 
 end