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() {
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);

Loading…
Cancel
Save