Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java Wed Sep 25 08:09:05 2019 -0600 +++ b/src/luan/modules/lucene/LuceneIndex.java Mon Sep 30 16:58:28 2019 -0600 @@ -675,6 +675,8 @@ doc.add(newField( name, value, indexed, boost )); } else { // list LuanTable list = (LuanTable)value; + if( !list.isList() ) + throw new LuanException("table value for '"+name+"' must be a list"); for( Object el : list.asList() ) { doc.add(newField( name, el, indexed, boost )); }