Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/LuceneDocument.java @ 411:23b99a5039b5
remove Luan.newTable()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 16:05:02 -0600 |
parents | ef39bc4d3f70 |
children | dae264ad6a7b |
comparison
equal
deleted
inserted
replaced
410:0d6098a29b3e | 411:23b99a5039b5 |
---|---|
82 } | 82 } |
83 | 83 |
84 static LuanTable toTable(LuanState luan,Document doc,Map<String,String> nameMap) throws LuanException { | 84 static LuanTable toTable(LuanState luan,Document doc,Map<String,String> nameMap) throws LuanException { |
85 if( doc==null ) | 85 if( doc==null ) |
86 return null; | 86 return null; |
87 LuanTable table = Luan.newTable(); | 87 LuanTable table = new LuanTable(); |
88 for( IndexableField ifld : doc ) { | 88 for( IndexableField ifld : doc ) { |
89 String name = ifld.name(); | 89 String name = ifld.name(); |
90 String newName = nameMap.get(name); | 90 String newName = nameMap.get(name); |
91 if( newName != null ) | 91 if( newName != null ) |
92 name = newName; | 92 name = newName; |