-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
根据说明中的配置方式配置了两种自定义词典方式均没有生成*.bin文件
solr版本为7.1
- 在
schema.xml文件中配置customDictionaryPath
<fieldType name="text_cn" class="solr.TextField">
<analyzer type="index">
<tokenizer class="com.hankcs.lucene.HanLPTokenizerFactory" enableIndexMode="true" customDictionaryPath="E:\Develop\solr-7.1.0\server\solr-webapp\webapp\WEB-INF\classes\hanlp\data\dictionary\custom\Organization.txt"/>
</analyzer>
<analyzer type="query">
<tokenizer class="com.hankcs.lucene.HanLPTokenizerFactory" enableIndexMode="false"/>
</analyzer>
</fieldType>
core所在目录为E:\Develop\solr-7.1.0\server\solr\mycore
schema.xml在E:\Develop\solr-7.1.0\server\solr\mycore\conf
2. 在hanlp.properties中配置CustomDictionaryPath也没有生效
root=E:/Develop/solr-7.1.0/server/solr-webapp/webapp/WEB-INF/classes/hanlp/
CustomDictionaryPath=data/dictionary/custom/CustomDictionary.txt; Organization.txt;
hanlp.properties所在目录为E:\Develop\solr-7.1.0\server\solr-webapp\webapp\WEB-INF\classes
这两种配置方式在Organization.txt目录下均没有生成.bin,这样子对吗?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels