|
|
@ -97,9 +97,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void initWriter() { |
|
|
|
private void initWriter() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
File file = new File(path); |
|
|
|
directory = FSDirectory.open(new File(path)); |
|
|
|
StableUtils.mkdirs(file); |
|
|
|
|
|
|
|
directory = FSDirectory.open(file); |
|
|
|
|
|
|
|
indexWriter = new IndexWriter(directory, config); |
|
|
|
indexWriter = new IndexWriter(directory, config); |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
FineLoggerFactory.getLogger().error("not privilege to write to" + path); |
|
|
|
FineLoggerFactory.getLogger().error("not privilege to write to" + path); |
|
|
|