Mercurial Hosting > luan
annotate src/goodjava/lucene/api/GoodIndexWriter.java @ 1530:447b7ef9197f
minor fix
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 28 Jul 2020 22:12:36 -0600 |
| parents | 3bd4d7963456 |
| children | c27dc6af87ca |
| rev | line source |
|---|---|
| 1460 | 1 package goodjava.lucene.api; |
| 2 | |
| 3 import java.io.IOException; | |
| 4 import java.util.Map; | |
|
1528
3bd4d7963456
use goodjava/lucene/api
Franklin Schmidt <fschmidt@gmail.com>
parents:
1460
diff
changeset
|
5 import org.apache.lucene.index.LiveIndexWriterConfig; |
| 1460 | 6 import org.apache.lucene.search.Query; |
|
1528
3bd4d7963456
use goodjava/lucene/api
Franklin Schmidt <fschmidt@gmail.com>
parents:
1460
diff
changeset
|
7 import org.apache.lucene.store.Directory; |
| 1460 | 8 |
| 9 | |
| 10 public interface GoodIndexWriter { | |
| 11 public void close() throws IOException; | |
| 12 public void commit() throws IOException; | |
| 13 public void rollback() throws IOException; | |
| 14 public void deleteAll() throws IOException; | |
| 15 public void deleteDocuments(Query query) throws IOException; | |
| 16 public void addDocument(Map<String,Object> storedFields) throws IOException; | |
| 17 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException; | |
| 18 public void reindexDocuments(String keyFieldName,Query query) throws IOException; | |
|
1528
3bd4d7963456
use goodjava/lucene/api
Franklin Schmidt <fschmidt@gmail.com>
parents:
1460
diff
changeset
|
19 public Directory getDirectory(); |
|
3bd4d7963456
use goodjava/lucene/api
Franklin Schmidt <fschmidt@gmail.com>
parents:
1460
diff
changeset
|
20 public LiveIndexWriterConfig getLuceneConfig(); |
| 1460 | 21 } |
