changeset 1129:3234a14bb1f8

minor lucene changes
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 Dec 2017 01:26:57 -0700
parents 34dfed3b5cb0
children bfbd5401353a
files src/luan/LuanTable.java src/luan/modules/lucene/Lucene.luan src/luan/modules/lucene/LuceneIndex.java
diffstat 3 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 34dfed3b5cb0 -r 3234a14bb1f8 src/luan/LuanTable.java
--- a/src/luan/LuanTable.java	Sun Nov 26 21:16:39 2017 -0700
+++ b/src/luan/LuanTable.java	Mon Dec 04 01:26:57 2017 -0700
@@ -285,7 +285,7 @@
 		};
 	}
 
-	public Iterable<Map.Entry> rawIterable() throws LuanException {
+	public Iterable<Map.Entry> rawIterable() {
 		final Iterator<Map.Entry> iter = rawIterator();
 		return new Iterable<Map.Entry>() {
 			public Iterator<Map.Entry> iterator() {
diff -r 34dfed3b5cb0 -r 3234a14bb1f8 src/luan/modules/lucene/Lucene.luan
--- a/src/luan/modules/lucene/Lucene.luan	Sun Nov 26 21:16:39 2017 -0700
+++ b/src/luan/modules/lucene/Lucene.luan	Mon Dec 04 01:26:57 2017 -0700
@@ -37,6 +37,7 @@
 	local index = {}
 	index.dir = index_dir
 	local java_index = LuceneIndex.new(index_dir,default_type,default_fields)
+	index.java = java_index
 --	index.indexed_fields = java_index.indexedFieldsMeta.newTable()
 
 	index.indexed_fields = {}
diff -r 34dfed3b5cb0 -r 3234a14bb1f8 src/luan/modules/lucene/LuceneIndex.java
--- a/src/luan/modules/lucene/LuceneIndex.java	Sun Nov 26 21:16:39 2017 -0700
+++ b/src/luan/modules/lucene/LuceneIndex.java	Mon Dec 04 01:26:57 2017 -0700
@@ -304,6 +304,10 @@
 		}
 	}
 */
+	public SnapshotDeletionPolicy snapshotDeletionPolicy() {
+		return snapshotDeletionPolicy;
+	}
+
 	public Object snapshot(LuanState luan,LuanFunction fn) throws LuanException, IOException {
 		IndexCommit ic = snapshotDeletionPolicy.snapshot();
 		try {