comparison src/goodjava/lucene/api/LuceneIndexWriter.java @ 1544:35601f15ecc3

add lucene log tag and restore_from_log
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 20 Sep 2020 20:36:55 -0600
parents c27dc6af87ca
children f48db13ae2d9
comparison
equal deleted inserted replaced
1543:1db694d98003 1544:35601f15ecc3
201 public void check() throws IOException { 201 public void check() throws IOException {
202 CheckIndex.Status status = new CheckIndex(luceneWriter.getDirectory()).checkIndex(); 202 CheckIndex.Status status = new CheckIndex(luceneWriter.getDirectory()).checkIndex();
203 if( !status.clean ) 203 if( !status.clean )
204 logger.error("index not clean"); 204 logger.error("index not clean");
205 } 205 }
206
207 public void tag(String tag) throws IOException {}
208
206 } 209 }