Mercurial Hosting > luan
comparison src/luan/modules/lucene/LuceneIndex.java @ 1410:dc625408def8
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Sep 2019 16:58:28 -0600 |
parents | 8187ddb0e827 |
children | 225808b90cee |
comparison
equal
deleted
inserted
replaced
1409:9103a61e64bc | 1410:dc625408def8 |
---|---|
673 } | 673 } |
674 if( !(value instanceof LuanTable) ) { | 674 if( !(value instanceof LuanTable) ) { |
675 doc.add(newField( name, value, indexed, boost )); | 675 doc.add(newField( name, value, indexed, boost )); |
676 } else { // list | 676 } else { // list |
677 LuanTable list = (LuanTable)value; | 677 LuanTable list = (LuanTable)value; |
678 if( !list.isList() ) | |
679 throw new LuanException("table value for '"+name+"' must be a list"); | |
678 for( Object el : list.asList() ) { | 680 for( Object el : list.asList() ) { |
679 doc.add(newField( name, el, indexed, boost )); | 681 doc.add(newField( name, el, indexed, boost )); |
680 } | 682 } |
681 } | 683 } |
682 } | 684 } |