changeset 1457:a84ce37f3892

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 09 Mar 2020 18:27:19 -0600
parents 4cc4f08a94e1
children 6b6c11c9164e
files src/luan/modules/lucene/Lucene.luan
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan	Mon Mar 09 15:48:53 2020 -0600
+++ b/src/luan/modules/lucene/Lucene.luan	Mon Mar 09 18:27:19 2020 -0600
@@ -117,7 +117,7 @@
 			doc = doc_fn()
 		end
 		local total_hits = index.advanced_search(query,fn,1)
-		total_hits <= 1 or error( "found " .. total_hits .. " documents" )
+		total_hits <= 1 or error("found "..total_hits.." documents for query: "..query)
 		return doc
 	end