Mercurial Hosting > luan
comparison src/goodjava/lucene/api/GoodIndexWriter.java @ 1549:41c32da4cbd1
lucene log work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 03 Oct 2020 20:55:26 -0600 |
parents | 736ec76bbf42 |
children |
comparison
equal
deleted
inserted
replaced
1548:736ec76bbf42 | 1549:41c32da4cbd1 |
---|---|
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.IndexReader; | |
4 import org.apache.lucene.index.IndexWriter; | 6 import org.apache.lucene.index.IndexWriter; |
5 import org.apache.lucene.search.Query; | 7 import org.apache.lucene.search.Query; |
6 | 8 |
7 | 9 |
8 public interface GoodIndexWriter extends GoodWriter { | 10 public interface GoodIndexWriter { |
11 public IndexReader openReader() throws IOException; | |
12 public void commit() 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 tag(String tag) throws IOException; | |
9 public void close() throws IOException; | 18 public void close() throws IOException; |
10 public void rollback() throws IOException; | 19 public void rollback() throws IOException; |
11 public void reindexDocuments(String keyFieldName,Query query) throws IOException; | 20 public void reindexDocuments(String keyFieldName,Query query) throws IOException; |
12 public IndexWriter getLuceneIndexWriter(); | 21 public IndexWriter getLuceneIndexWriter(); |
13 } | 22 } |