安装说明 http://blog.sina.com.cn/s/blog_67196ddc0101a3so.html
IK Analyzer 2012FF_hf1 + luncene 4.10版本以上
问题一:
IKAnalyzer中参考手册中的例子是使用的lucene3.4,与4.0已经是不兼容了。
从google 上面下载 IK Analyzer 2012FF_hf1.zip 就可以解决问题
http://blog.csdn.net/tangpengtao/article/details/8670724
问题二:lucene从4.6.0开始tokenstream使用方法更改的问题,在使用incrementtoken方法前必须调用reset方法,详见api http://lucene.apache.org/core/4_6_0/core/index.html
http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E7%9F%A5%E8%AF%86%E5%BA%93/30943.shtml