🎨 lucene 目录路径调整
This commit is contained in:
parent
1cbd0a3330
commit
364ea1d881
@ -42,7 +42,7 @@ public class DefaultConfig implements Configuration {
|
|||||||
* 用户自定义字典路径
|
* 用户自定义字典路径
|
||||||
*/
|
*/
|
||||||
private static final String PATH_USER_DIC =
|
private static final String PATH_USER_DIC =
|
||||||
System.getProperty("user.dir") + "/lucene/userDic/userDic.dic";
|
"lucene/userDic/userDic.dic";
|
||||||
/**
|
/**
|
||||||
* 配置属性——扩展字典
|
* 配置属性——扩展字典
|
||||||
*/
|
*/
|
||||||
|
@ -53,7 +53,7 @@ public class Dictionary {
|
|||||||
* 用户自定义词典路径
|
* 用户自定义词典路径
|
||||||
*/
|
*/
|
||||||
private static final String PATH_USER_DIC =
|
private static final String PATH_USER_DIC =
|
||||||
System.getProperty("user.dir") + "/lucene/userDic/userDic.dic";
|
"lucene/userDic/userDic.dic";
|
||||||
/**
|
/**
|
||||||
* 配置对象
|
* 配置对象
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +24,7 @@ public class ArticleIndexUtil {
|
|||||||
* lucene索引保存目录
|
* lucene索引保存目录
|
||||||
*/
|
*/
|
||||||
private static final String PATH =
|
private static final String PATH =
|
||||||
System.getProperty("user.dir") + LucenePath.ARTICLE_INDEX_PATH;
|
LucenePath.ARTICLE_INDEX_PATH;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除所有运行中保存的索引
|
* 删除所有运行中保存的索引
|
||||||
|
@ -10,7 +10,7 @@ public final class LucenePath {
|
|||||||
/**
|
/**
|
||||||
* lucene 目录
|
* lucene 目录
|
||||||
*/
|
*/
|
||||||
public static final String INDEX_PATH = "/lucene/index";
|
public static final String INDEX_PATH = "lucene/index";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文章 lucene 目录
|
* 文章 lucene 目录
|
||||||
@ -21,7 +21,7 @@ public final class LucenePath {
|
|||||||
* 文章增量 lucene 目录
|
* 文章增量 lucene 目录
|
||||||
*/
|
*/
|
||||||
public static final String ARTICLE_INCREMENT_INDEX_PATH =
|
public static final String ARTICLE_INCREMENT_INDEX_PATH =
|
||||||
System.getProperty("user.dir") + ARTICLE_INDEX_PATH + "/index777";
|
ARTICLE_INDEX_PATH + "/index777";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户 lucene 目录
|
* 用户 lucene 目录
|
||||||
@ -32,7 +32,7 @@ public final class LucenePath {
|
|||||||
* 用户增量 lucene 目录
|
* 用户增量 lucene 目录
|
||||||
*/
|
*/
|
||||||
public static final String USER_INCREMENT_INDEX_PATH =
|
public static final String USER_INCREMENT_INDEX_PATH =
|
||||||
System.getProperty("user.dir") + USER_PATH + "/index777";
|
USER_PATH + "/index777";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作品集 lucene 目录
|
* 作品集 lucene 目录
|
||||||
@ -43,5 +43,5 @@ public final class LucenePath {
|
|||||||
* 作品集增量 lucene 目录
|
* 作品集增量 lucene 目录
|
||||||
*/
|
*/
|
||||||
public static final String PORTFOLIO_INCREMENT_INDEX_PATH =
|
public static final String PORTFOLIO_INCREMENT_INDEX_PATH =
|
||||||
System.getProperty("user.dir") + PORTFOLIO_PATH + "/index777";
|
PORTFOLIO_PATH + "/index777";
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ public class PortfolioIndexUtil {
|
|||||||
* lucene索引保存目录
|
* lucene索引保存目录
|
||||||
*/
|
*/
|
||||||
private static final String PATH =
|
private static final String PATH =
|
||||||
System.getProperty("user.dir") + StrUtil.SLASH + LucenePath.PORTFOLIO_PATH;
|
StrUtil.SLASH + LucenePath.PORTFOLIO_PATH;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除所有运行中保存的索引
|
* 删除所有运行中保存的索引
|
||||||
|
@ -25,7 +25,7 @@ public class UserIndexUtil {
|
|||||||
/**
|
/**
|
||||||
* lucene索引保存目录
|
* 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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统运行时索引保存目录
|
* 系统运行时索引保存目录
|
||||||
|
Loading…
Reference in New Issue
Block a user