ryanqq / paoding

Automatically exported from code.google.com/p/paoding
0 stars 0 forks source link

Lucene 3.0 兼容问题 #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
lucene 3.0 
去掉了一些废弃的方法,如tokenStream.next()方法。为了让Paoding�
��
够在lucene 
3.0环境运行,我改动了附件中的三个文件,主要是为了兼容��
�的
tokenStream.incrementToken()接口。

Original issue reported on code.google.com by reno....@gmail.com on 3 Dec 2009 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
请问能标明你改动了哪些地方吗?

Original comment by stt...@163.com on 9 Jul 2010 at 6:23

GoogleCodeExporter commented 9 years ago
我现在的版本是lucene3.0.2,加入这三个文件依然报:
Exception in thread "main" java.lang.NullPointerException
    at net.paoding.analysis.analyzer.PaodingTokenizer.close(PaodingTokenizer.java:164)
    at org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:571)
    at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1362)
    at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1250)
    at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1178)
    at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1167)
    at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:182)
    at test.TestBoBo.main(TestBoBo.java:44)

Original comment by stt...@163.com on 9 Jul 2010 at 6:33

GoogleCodeExporter commented 9 years ago
把paoding的PaodingTokenizer类的164行注释掉,就不会报错,已经在
lucene3.0.2试过
        super.close();
//      input.close();//这句导致报错

Original comment by hjbin...@gmail.com on 14 Jul 2010 at 3:08

GoogleCodeExporter commented 9 years ago
作者,你也更新下paoding分词器啊,现在solr都到3.5版本了,不兼容
paoding啊.虽然有IK分词可用,但貌似paoding分词效率要高些

Original comment by ll.2001p...@163.com on 13 Dec 2011 at 1:14