comparison src/goodjava/lucene/api/GoodIndexWriter.java @ 1548:736ec76bbf42

lucene log work
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 27 Sep 2020 22:07:18 -0600
parents 35601f15ecc3
children 41c32da4cbd1
comparison
equal deleted inserted replaced
1547:f24a9ba7551e 1548:736ec76bbf42
1 package goodjava.lucene.api; 1 package goodjava.lucene.api;
2 2
3 import java.io.IOException; 3 import java.io.IOException;
4 import java.util.Map;
5 import org.apache.lucene.index.IndexWriter; 4 import org.apache.lucene.index.IndexWriter;
6 import org.apache.lucene.search.Query; 5 import org.apache.lucene.search.Query;
7 6
8 7
9 public interface GoodIndexWriter { 8 public interface GoodIndexWriter extends GoodWriter {
10 public void close() throws IOException; 9 public void close() throws IOException;
11 public void commit() throws IOException;
12 public void rollback() throws IOException; 10 public void rollback() throws IOException;
13 public void deleteAll() throws IOException;
14 public void deleteDocuments(Query query) throws IOException;
15 public void addDocument(Map<String,Object> storedFields) throws IOException;
16 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException;
17 public void reindexDocuments(String keyFieldName,Query query) throws IOException; 11 public void reindexDocuments(String keyFieldName,Query query) throws IOException;
18 public void tag(String tag) throws IOException;
19 public IndexWriter getLuceneIndexWriter(); 12 public IndexWriter getLuceneIndexWriter();
20 } 13 }