Mercurial Hosting > luan
annotate src/goodjava/lucene/api/GoodIndexWriter.java @ 1544:35601f15ecc3
add lucene log tag and restore_from_log
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 20 Sep 2020 20:36:55 -0600 |
parents | c27dc6af87ca |
children | 736ec76bbf42 |
rev | line source |
---|---|
1460 | 1 package goodjava.lucene.api; |
2 | |
3 import java.io.IOException; | |
4 import java.util.Map; | |
1539 | 5 import org.apache.lucene.index.IndexWriter; |
1460 | 6 import org.apache.lucene.search.Query; |
7 | |
8 | |
9 public interface GoodIndexWriter { | |
10 public void close() throws IOException; | |
11 public void commit() throws IOException; | |
12 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; | |
1544
35601f15ecc3
add lucene log tag and restore_from_log
Franklin Schmidt <fschmidt@gmail.com>
parents:
1539
diff
changeset
|
18 public void tag(String tag) throws IOException; |
1539 | 19 public IndexWriter getLuceneIndexWriter(); |
1460 | 20 } |