Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Aug 22, 2015
1 parent 8e24469 commit 86c8480
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# hanlp-solr-plugin
========

HanLP中文分词solr插件
----------------------
- 整合方法
0.```hanlp-portable-${version}.jar``````hanlp-solr-plugin-${version}.jar```共两个jar放入```${webapp}/WEB-INF/lib```
0. 修改solr core的配置文件```${core}/conf/schema.xml```
```
<fieldType name="text_cn" class="solr.TextField">
<analyzer type="index" enableIndexMode="true" class="com.hankcs.lucene.HanLPAnalyzer"/>
<analyzer type="query" enableIndexMode="true" class="com.hankcs.lucene.HanLPAnalyzer"/>
</fieldType>
```
- 配置方法
HanLP分词器主要通过class path下的```hanlp.properties```进行配置,请阅读HanLP自然语言处理包文档以了解更多。
- 版权
Apache License Version 2.0

0 comments on commit 86c8480

Please sign in to comment.