Mercurial Hosting > luan
diff src/goodjava/lucene/api/GoodIndexWriter.java @ 1528:3bd4d7963456
use goodjava/lucene/api
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 26 Jul 2020 23:11:53 -0600 |
parents | 3ab0d043370f |
children | c27dc6af87ca |
line wrap: on
line diff
--- a/src/goodjava/lucene/api/GoodIndexWriter.java Sun Jul 26 15:06:15 2020 -0600 +++ b/src/goodjava/lucene/api/GoodIndexWriter.java Sun Jul 26 23:11:53 2020 -0600 @@ -2,7 +2,9 @@ import java.io.IOException; import java.util.Map; +import org.apache.lucene.index.LiveIndexWriterConfig; import org.apache.lucene.search.Query; +import org.apache.lucene.store.Directory; public interface GoodIndexWriter { @@ -14,4 +16,6 @@ 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 Directory getDirectory(); + public LiveIndexWriterConfig getLuceneConfig(); }