Mercurial Hosting > luan
comparison src/goodjava/lucene/api/GoodIndexWriter.java @ 1539:c27dc6af87ca
remove nextId
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 06 Sep 2020 11:35:30 -0600 |
| parents | 3bd4d7963456 |
| children | 35601f15ecc3 |
comparison
equal
deleted
inserted
replaced
| 1538:634f6765830e | 1539:c27dc6af87ca |
|---|---|
| 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; | 4 import java.util.Map; |
| 5 import org.apache.lucene.index.LiveIndexWriterConfig; | 5 import org.apache.lucene.index.IndexWriter; |
| 6 import org.apache.lucene.search.Query; | 6 import org.apache.lucene.search.Query; |
| 7 import org.apache.lucene.store.Directory; | |
| 8 | 7 |
| 9 | 8 |
| 10 public interface GoodIndexWriter { | 9 public interface GoodIndexWriter { |
| 11 public void close() throws IOException; | 10 public void close() throws IOException; |
| 12 public void commit() throws IOException; | 11 public void commit() throws IOException; |
| 14 public void deleteAll() throws IOException; | 13 public void deleteAll() throws IOException; |
| 15 public void deleteDocuments(Query query) throws IOException; | 14 public void deleteDocuments(Query query) throws IOException; |
| 16 public void addDocument(Map<String,Object> storedFields) throws IOException; | 15 public void addDocument(Map<String,Object> storedFields) throws IOException; |
| 17 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException; | 16 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException; |
| 18 public void reindexDocuments(String keyFieldName,Query query) throws IOException; | 17 public void reindexDocuments(String keyFieldName,Query query) throws IOException; |
| 19 public Directory getDirectory(); | 18 public IndexWriter getLuceneIndexWriter(); |
| 20 public LiveIndexWriterConfig getLuceneConfig(); | |
| 21 } | 19 } |
