Skip to content

Commit a8932c5

Browse files
authored
Update HanLPTokenizerFactory.java
1 parent c78fe7e commit a8932c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class HanLPTokenizerFactory extends AbstractTokenizerFactory {
2222

2323
public HanLPTokenizerFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
2424
super(indexSettings, name, settings);
25-
Predefine.HANLP_PROPERTIES_PATH = sysPath.substring(0, sysPath.length()-4) + "/plugins/analysis-hanlp/hanlp.properties";
25+
Predefine.HANLP_PROPERTIES_PATH = sysPath.substring(0, sysPath.length()-4) + File.separator + "plugins" + File.separator + "analysis-hanlp" + File.separator + "hanlp.properties";
2626
enablePorterStemming = settings.getAsBoolean("enablePorterStemming", false);
2727
}
2828

0 commit comments

Comments
 (0)