comparison src/goodjava/lucene/api/LuceneIndexWriter.java @ 1539:c27dc6af87ca

remove nextId
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 06 Sep 2020 11:35:30 -0600
parents 3bd4d7963456
children 35601f15ecc3
comparison
equal deleted inserted replaced
1538:634f6765830e 1539:c27dc6af87ca
44 this.luceneWriter = new IndexWriter(dir,luceneConfig); 44 this.luceneWriter = new IndexWriter(dir,luceneConfig);
45 this.goodConfig = goodConfig; 45 this.goodConfig = goodConfig;
46 luceneWriter.commit(); // commit index creation 46 luceneWriter.commit(); // commit index creation
47 } 47 }
48 48
49 public Directory getDirectory() { 49 public IndexWriter getLuceneIndexWriter() {
50 return luceneWriter.getDirectory(); 50 return luceneWriter;
51 }
52
53 public LiveIndexWriterConfig getLuceneConfig() {
54 return luceneWriter.getConfig();
55 } 51 }
56 52
57 public void close() throws IOException { 53 public void close() throws IOException {
58 luceneWriter.close(); 54 luceneWriter.close();
59 } 55 }