File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/ansj/elasticsearch/index/config Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<groupId >org.ansj</groupId >
6
6
<artifactId >elasticsearch-analysis-ansj</artifactId >
7
- <version >8.17.6 .0</version >
7
+ <version >8.18.0 .0</version >
8
8
<description >elasticsearch analysis by ansj</description >
9
9
<name >elasticsearch-analysis-ansj</name >
10
10
<url >http://maven.nlpcn.org</url >
14
14
<runSuite >**/MainTestSuite.class</runSuite >
15
15
<elasticsearch .plugin.name>elasticsearch-analysis-ansj</elasticsearch .plugin.name>
16
16
<elasticsearch .plugin.java.version>17</elasticsearch .plugin.java.version>
17
- <elasticsearch .version>8.17.6 </elasticsearch .version>
17
+ <elasticsearch .version>8.18.0 </elasticsearch .version>
18
18
<elasticsearch .plugin.classname>org.ansj.elasticsearch.plugin.AnalysisAnsjPlugin</elasticsearch .plugin.classname>
19
19
</properties >
20
20
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public AnsjElasticConfigurator(Environment env) {
58
58
}
59
59
60
60
private void init () {
61
- Path configFilePath = env .configFile ().resolve ("elasticsearch-analysis-ansj" ).resolve (CONFIG_FILE_NAME );
61
+ Path configFilePath = env .configDir ().resolve ("elasticsearch-analysis-ansj" ).resolve (CONFIG_FILE_NAME );
62
62
LOG .info ("try to load ansj config file: {}" , configFilePath );
63
63
if (!Files .exists (configFilePath )) {
64
64
configFilePath = Paths .get (new File (AnsjElasticConfigurator .class .getProtectionDomain ().getCodeSource ().getLocation ().getPath ()).getParent (), "config" ).resolve (CONFIG_FILE_NAME );
@@ -79,7 +79,7 @@ private void init() {
79
79
Settings settings = builder .build ();
80
80
path = settings .get ("ansj_config" );
81
81
ansjSettings = settings .getAsSettings ("ansj" );
82
- configDir = env .configFile ().toFile ();
82
+ configDir = env .configDir ().toFile ();
83
83
84
84
flushConfig ();
85
85
}
You can’t perform that action at this time.
0 commit comments