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 44
55 <groupId >org.ansj</groupId >
66 <artifactId >elasticsearch-analysis-ansj</artifactId >
7- <version >8.17.6 .0</version >
7+ <version >8.18.0 .0</version >
88 <description >elasticsearch analysis by ansj</description >
99 <name >elasticsearch-analysis-ansj</name >
1010 <url >http://maven.nlpcn.org</url >
1414 <runSuite >**/MainTestSuite.class</runSuite >
1515 <elasticsearch .plugin.name>elasticsearch-analysis-ansj</elasticsearch .plugin.name>
1616 <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>
1818 <elasticsearch .plugin.classname>org.ansj.elasticsearch.plugin.AnalysisAnsjPlugin</elasticsearch .plugin.classname>
1919 </properties >
2020
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public AnsjElasticConfigurator(Environment env) {
5858 }
5959
6060 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 );
6262 LOG .info ("try to load ansj config file: {}" , configFilePath );
6363 if (!Files .exists (configFilePath )) {
6464 configFilePath = Paths .get (new File (AnsjElasticConfigurator .class .getProtectionDomain ().getCodeSource ().getLocation ().getPath ()).getParent (), "config" ).resolve (CONFIG_FILE_NAME );
@@ -79,7 +79,7 @@ private void init() {
7979 Settings settings = builder .build ();
8080 path = settings .get ("ansj_config" );
8181 ansjSettings = settings .getAsSettings ("ansj" );
82- configDir = env .configFile ().toFile ();
82+ configDir = env .configDir ().toFile ();
8383
8484 flushConfig ();
8585 }
You can’t perform that action at this time.
0 commit comments