Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1527:fa1e3adbebfb | 1528:3bd4d7963456 |
---|---|
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.search.Query; | 6 import org.apache.lucene.search.Query; |
7 import org.apache.lucene.store.Directory; | |
6 | 8 |
7 | 9 |
8 public interface GoodIndexWriter { | 10 public interface GoodIndexWriter { |
9 public void close() throws IOException; | 11 public void close() throws IOException; |
10 public void commit() throws IOException; | 12 public void commit() throws IOException; |
12 public void deleteAll() throws IOException; | 14 public void deleteAll() throws IOException; |
13 public void deleteDocuments(Query query) throws IOException; | 15 public void deleteDocuments(Query query) throws IOException; |
14 public void addDocument(Map<String,Object> storedFields) throws IOException; | 16 public void addDocument(Map<String,Object> storedFields) throws IOException; |
15 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException; | 17 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException; |
16 public void reindexDocuments(String keyFieldName,Query query) throws IOException; | 18 public void reindexDocuments(String keyFieldName,Query query) throws IOException; |
19 public Directory getDirectory(); | |
20 public LiveIndexWriterConfig getLuceneConfig(); | |
17 } | 21 } |