Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/src/goodjava/lucene/api/GoodIndexWriter.java Thu Sep 24 15:33:56 2020 -0600 +++ b/src/goodjava/lucene/api/GoodIndexWriter.java Sun Sep 27 22:07:18 2020 -0600 @@ -1,20 +1,13 @@ package goodjava.lucene.api; import java.io.IOException; -import java.util.Map; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.Query; -public interface GoodIndexWriter { +public interface GoodIndexWriter extends GoodWriter { 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; - public void tag(String tag) throws IOException; public IndexWriter getLuceneIndexWriter(); }