Mercurial Hosting > luan
comparison src/luan/modules/lucene/SupplementingConfig.java @ 1771:c62324841dfb
improve NumberFieldParser and add key map lucene query
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 25 Jun 2023 15:05:09 -0600 |
parents | 46cf5137cb6b |
children |
comparison
equal
deleted
inserted
replaced
1770:6c01d54edcac | 1771:c62324841dfb |
---|---|
67 | 67 |
68 static Map<String,Object> toLucene(LuanTable table) throws LuanException { | 68 static Map<String,Object> toLucene(LuanTable table) throws LuanException { |
69 Map<String,Object> map = new LinkedHashMap<String,Object>(); | 69 Map<String,Object> map = new LinkedHashMap<String,Object>(); |
70 for( Map.Entry<Object,Object> entry : table.rawIterable() ) { | 70 for( Map.Entry<Object,Object> entry : table.rawIterable() ) { |
71 String name = (String)entry.getKey(); | 71 String name = (String)entry.getKey(); |
72 Object value = entry.getValue(); | 72 Object value = entry.getValue(); |
73 if( value instanceof LuanTable ) { | 73 if( value instanceof LuanTable ) { |
74 LuanTable list = (LuanTable)value; | 74 LuanTable list = (LuanTable)value; |
75 if( !list.isList() ) | 75 if( !list.isList() ) |
76 throw new LuanException("table value for '"+name+"' must be a list"); | 76 throw new LuanException("table value for '"+name+"' must be a list"); |
77 value = list.asList(); | 77 value = list.asList(); |