view src/goodjava/lucene/api/GoodIndexWriter.java @ 1530:447b7ef9197f

minor fix
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 28 Jul 2020 22:12:36 -0600
parents 3bd4d7963456
children c27dc6af87ca
line wrap: on
line source

package goodjava.lucene.api;

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 {
	public void close() throws IOException;
	public void commit() throws IOException;
	public void rollback() throws IOException;
	public void deleteAll() throws IOException;
	public void deleteDocuments(Query query) throws IOException;
	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();
}