diff lucene/src/luan/modules/lucene/LuceneDocument.java @ 427:dae264ad6a7b

fix LuanTable.put() to use metatables
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 May 2015 19:29:07 -0600
parents 23b99a5039b5
children d9df6d6cb927
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/LuceneDocument.java	Fri May 01 18:44:20 2015 -0600
+++ b/lucene/src/luan/modules/lucene/LuceneDocument.java	Fri May 01 19:29:07 2015 -0600
@@ -92,17 +92,17 @@
 				name = newName;
 			BytesRef br = ifld.binaryValue();
 			if( br != null ) {
-				table.put(name,br.bytes);
+				table.rawPut(name,br.bytes);
 				continue;
 			}
 			Number n = ifld.numericValue();
 			if( n != null ) {
-				table.put(name,n);
+				table.rawPut(name,n);
 				continue;
 			}
 			String s = ifld.stringValue();
 			if( s != null ) {
-				table.put(name,s);
+				table.rawPut(name,s);
 				continue;
 			}
 			throw luan.exception("invalid field type for "+ifld);