comparison src/goodjava/lucene/api/GoodIndexWriter.java @ 1460:3ab0d043370f

start lucene.api
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 23 Mar 2020 00:04:42 -0600
parents
children 3bd4d7963456
comparison
equal deleted inserted replaced
1459:b04b8fc5f4f4 1460:3ab0d043370f
1 package goodjava.lucene.api;
2
3 import java.io.IOException;
4 import java.util.Map;
5 import org.apache.lucene.search.Query;
6
7
8 public interface GoodIndexWriter {
9 public void close() throws IOException;
10 public void commit() throws IOException;
11 public void rollback() throws IOException;
12 public void deleteAll() throws IOException;
13 public void deleteDocuments(Query query) throws IOException;
14 public void addDocument(Map<String,Object> storedFields) throws IOException;
15 public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException;
16 public void reindexDocuments(String keyFieldName,Query query) throws IOException;
17 }