XiaXiang 6 years ago
parent
commit
180c6a2b59
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

@ -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);

Loading…
Cancel
Save