diff src/goodjava/lucene/api/GoodIndexWriter.java @ 1460:3ab0d043370f

start lucene.api
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 23 Mar 2020 00:04:42 -0600
parents
children 3bd4d7963456
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/goodjava/lucene/api/GoodIndexWriter.java	Mon Mar 23 00:04:42 2020 -0600
@@ -0,0 +1,17 @@
+package goodjava.lucene.api;
+
+import java.io.IOException;
+import java.util.Map;
+import org.apache.lucene.search.Query;
+
+
+public interface GoodIndexWriter {
+	public void close() throws IOException;
+	public void commit() throws IOException;
+	public void rollback() throws IOException;
+	public void deleteAll() throws IOException;
+	public void deleteDocuments(Query query) throws IOException;
+	public void addDocument(Map<String,Object> storedFields) throws IOException;
+	public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException;
+	public void reindexDocuments(String keyFieldName,Query query) throws IOException;
+}