diff src/luan/modules/lucene/LuceneIndex.java @ 1222:cb422386f6b5

logging
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 25 Mar 2018 17:35:30 -0600
parents 3234a14bb1f8
children a12dba1f0787
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java	Sun Mar 25 17:13:11 2018 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Sun Mar 25 17:35:30 2018 -0600
@@ -71,7 +71,6 @@
 import luan.LuanTable;
 import luan.LuanFunction;
 import luan.LuanException;
-//import luan.LuanMeta;
 import luan.LuanRuntimeException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -460,41 +459,6 @@
 	}
 
 
-/*
-	public final LuanMeta indexedFieldsMeta = new LuanMeta() {
-
-		@Override public boolean canNewindex() {
-			return true;
-		}
-
-		@Override public Object __index(LuanState luan,LuanTable tbl,Object key) {
-			return mfp.fields.get(key);
-		}
-
-		@Override public void __new_index(LuanState luan,LuanTable tbl,Object key,Object value) throws LuanException {
-			if( !(key instanceof String) )
-				throw new LuanException("key must be string");
-			String field = (String)key;
-			if( value==null ) {  // delete
-				mfp.fields.remove(field);
-				return;
-			}
-			if( !(value instanceof FieldParser) )
-				throw new LuanException("value must be FieldParser like the values of Lucene.type");
-			FieldParser parser = (FieldParser)value;
-			mfp.fields.put( field, parser );
-		}
-
-		@Override public final Iterator keys(LuanTable tbl) {
-			return mfp.fields.keySet().iterator();
-		}
-
-		@Override protected String type(LuanTable tbl) {
-			return "lucene-indexed-fields";
-		}
-
-	};
-*/
 	public FieldParser getIndexedFieldParser(String field) {
 		return mfp.fields.get(field);
 	}