diff src/goodjava/lucene/logging/LoggingIndexWriter.java @ 1539:c27dc6af87ca

remove nextId
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 06 Sep 2020 11:35:30 -0600
parents 634f6765830e
children 35601f15ecc3
line wrap: on
line diff
--- a/src/goodjava/lucene/logging/LoggingIndexWriter.java	Fri Aug 07 21:42:16 2020 -0600
+++ b/src/goodjava/lucene/logging/LoggingIndexWriter.java	Sun Sep 06 11:35:30 2020 -0600
@@ -17,8 +17,8 @@
 import org.apache.lucene.document.Document;
 import org.apache.lucene.index.DirectoryReader;
 import org.apache.lucene.index.IndexReader;
+import org.apache.lucene.index.IndexWriter;
 import org.apache.lucene.index.Term;
-import org.apache.lucene.index.LiveIndexWriterConfig;
 import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.search.MatchAllDocsQuery;
@@ -80,12 +80,8 @@
 		newLogs();
 	}
 
-	public Directory getDirectory() {
-		return indexWriter.getDirectory();
-	}
-
-	public LiveIndexWriterConfig getLuceneConfig() {
-		return indexWriter.getLuceneConfig();
+	public IndexWriter getLuceneIndexWriter() {
+		return indexWriter.getLuceneIndexWriter();
 	}
 
 	private void setLog() throws IOException {