| 
1460
 | 
     1 package goodjava.lucene.api;
 | 
| 
 | 
     2 
 | 
| 
 | 
     3 import java.io.IOException;
 | 
| 
1549
 | 
     4 import java.util.Map;
 | 
| 
 | 
     5 import org.apache.lucene.index.IndexReader;
 | 
| 
1539
 | 
     6 import org.apache.lucene.index.IndexWriter;
 | 
| 
1460
 | 
     7 import org.apache.lucene.search.Query;
 | 
| 
 | 
     8 
 | 
| 
 | 
     9 
 | 
| 
1549
 | 
    10 public interface GoodIndexWriter {
 | 
| 
 | 
    11 	public IndexReader openReader() throws IOException;
 | 
| 
 | 
    12 	public void commit() throws IOException;
 | 
| 
 | 
    13 	public void deleteAll() throws IOException;
 | 
| 
 | 
    14 	public void deleteDocuments(Query query) throws IOException;
 | 
| 
 | 
    15 	public void addDocument(Map<String,Object> storedFields) throws IOException;
 | 
| 
 | 
    16 	public void updateDocument(String keyFieldName,Map<String,Object> storedFields) throws IOException;
 | 
| 
 | 
    17 	public void tag(String tag) throws IOException;
 | 
| 
1460
 | 
    18 	public void close() throws IOException;
 | 
| 
 | 
    19 	public void rollback() throws IOException;
 | 
| 
 | 
    20 	public void reindexDocuments(String keyFieldName,Query query) throws IOException;
 | 
| 
1539
 | 
    21 	public IndexWriter getLuceneIndexWriter();
 | 
| 
1460
 | 
    22 }
 |