Skip to content

Commit c78fe7e

Browse files
authored
Update HanLPAnalyzerProvider.java
1 parent 021f0c8 commit c78fe7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/index/analysis/HanLPAnalyzerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class HanLPAnalyzerProvider extends AbstractIndexAnalyzerProvider<HanLPIn
1919
@Inject
2020
public HanLPAnalyzerProvider(IndexSettings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
2121
super(indexSettings, name, settings);
22-
Predefine.HANLP_PROPERTIES_PATH = sysPath.substring(0, sysPath.length()-4) + "/plugins/analysis-hanlp/hanlp.properties";
22+
Predefine.HANLP_PROPERTIES_PATH = sysPath.substring(0, sysPath.length()-4) + File.separator + "plugins" + File.separator + "analysis-hanlp" + File.separator + "hanlp.properties";
2323
analyzer = new HanLPIndexAnalyzer(true);
2424
}
2525

0 commit comments

Comments
 (0)