|
|
@ -113,7 +113,10 @@ public class RecentSearchManager implements AlphaFineSearchProvider { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void initReader() { |
|
|
|
private void initReader() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(indexWriter != null){ |
|
|
|
indexWriter.close(); |
|
|
|
indexWriter.close(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
directory = FSDirectory.open(new File(path)); |
|
|
|
indexReader = DirectoryReader.open(directory); |
|
|
|
indexReader = DirectoryReader.open(directory); |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|