Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/LuceneDocument.java @ 432:d9df6d6cb927
finish fixing LuanTable to use metatables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2015 23:41:59 -0600 |
parents | dae264ad6a7b |
children | c5a93767cc5c |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/LuceneDocument.java Sat May 02 21:12:48 2015 -0600 +++ b/lucene/src/luan/modules/lucene/LuceneDocument.java Sat May 02 23:41:59 2015 -0600 @@ -28,7 +28,7 @@ static Document toLucene(LuanState luan,LuanTable table,Map<String,String> nameMap) throws LuanException { Document doc = new Document(); - for( Map.Entry<Object,Object> entry : table ) { + for( Map.Entry<Object,Object> entry : table.iterable(luan) ) { Object key = entry.getKey(); if( !(key instanceof String) ) throw luan.exception("key must be string");