🎨 lucene 目录路径调整

This commit is contained in:
ronger 2023-01-05 10:21:41 +08:00
parent 1cbd0a3330
commit 364ea1d881
6 changed files with 9 additions and 9 deletions

View File

@ -42,7 +42,7 @@ public class DefaultConfig implements Configuration {
* 用户自定义字典路径
*/
private static final String PATH_USER_DIC =
System.getProperty("user.dir") + "/lucene/userDic/userDic.dic";
"lucene/userDic/userDic.dic";
/**
* 配置属性扩展字典
*/

View File

@ -53,7 +53,7 @@ public class Dictionary {
* 用户自定义词典路径
*/
private static final String PATH_USER_DIC =
System.getProperty("user.dir") + "/lucene/userDic/userDic.dic";
"lucene/userDic/userDic.dic";
/**
* 配置对象
*/

View File

@ -24,7 +24,7 @@ public class ArticleIndexUtil {
* lucene索引保存目录
*/
private static final String PATH =
System.getProperty("user.dir") + LucenePath.ARTICLE_INDEX_PATH;
LucenePath.ARTICLE_INDEX_PATH;
/**
* 删除所有运行中保存的索引

View File

@ -10,7 +10,7 @@ public final class LucenePath {
/**
* lucene 目录
*/
public static final String INDEX_PATH = "/lucene/index";
public static final String INDEX_PATH = "lucene/index";
/**
* 文章 lucene 目录
@ -21,7 +21,7 @@ public final class LucenePath {
* 文章增量 lucene 目录
*/
public static final String ARTICLE_INCREMENT_INDEX_PATH =
System.getProperty("user.dir") + ARTICLE_INDEX_PATH + "/index777";
ARTICLE_INDEX_PATH + "/index777";
/**
* 用户 lucene 目录
@ -32,7 +32,7 @@ public final class LucenePath {
* 用户增量 lucene 目录
*/
public static final String USER_INCREMENT_INDEX_PATH =
System.getProperty("user.dir") + USER_PATH + "/index777";
USER_PATH + "/index777";
/**
* 作品集 lucene 目录
@ -43,5 +43,5 @@ public final class LucenePath {
* 作品集增量 lucene 目录
*/
public static final String PORTFOLIO_INCREMENT_INDEX_PATH =
System.getProperty("user.dir") + PORTFOLIO_PATH + "/index777";
PORTFOLIO_PATH + "/index777";
}

View File

@ -24,7 +24,7 @@ public class PortfolioIndexUtil {
* lucene索引保存目录
*/
private static final String PATH =
System.getProperty("user.dir") + StrUtil.SLASH + LucenePath.PORTFOLIO_PATH;
StrUtil.SLASH + LucenePath.PORTFOLIO_PATH;
/**
* 删除所有运行中保存的索引

View File

@ -25,7 +25,7 @@ public class UserIndexUtil {
/**
* lucene索引保存目录
*/
private static final String PATH = System.getProperty("user.dir") + StrUtil.SLASH + LucenePath.USER_PATH;
private static final String PATH = StrUtil.SLASH + LucenePath.USER_PATH;
/**
* 系统运行时索引保存目录