Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 934 Bytes

File metadata and controls

31 lines (16 loc) · 934 Bytes

new version in https://github.com/NLPchina/elasticsearch-analysis-ansj

这个插件已经不再更新新版本访问上面地址获得

elasticsearch-ansj-analysis-plugin

ansj analysis elasticsearch plugin

In this feature, I added the stopword functionality to the ansj analyzer. To make the plugin runnable, what you should to is put your stopword library stopLibrary.dic (you should name it as stopLibrary.dic) under directory '%ES_HOME%/config/ansj/library/stop'.

At the same time, you may want to load user library, in order to do that, you can easily put your dic files under '%ES_HOME%/config/ansj/library/userLibrary', the plugin shall automatically load your dic files.

For the stopword dic file, you can write every line in the following format:

的 _stop 1000

和 _stop 1000

Words are separated using TAB(\t).