From 180c6a2b5975666c763c6698c3d4abc1681ed4c4 Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 11 Jul 2018 21:54:59 +0800 Subject: [PATCH] rt --- .../alphafine/search/manager/impl/RecentSearchManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java b/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java index b67f4575f..1b4771799 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java +++ b/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() { try { - File file = new File(path); - StableUtils.mkdirs(file); - directory = FSDirectory.open(file); + directory = FSDirectory.open(new File(path)); indexWriter = new IndexWriter(directory, config); } catch (IOException e) { FineLoggerFactory.getLogger().error("not privilege to write to" + path);