Lucene.NET's language handle in Lucene.Net.Analysis.cn's bug
Recently improved the search program of the bloggers. The search function of the blog garden is
Lucene.Net
Search engine, when the blog garden increased the search function, Lucene.Net did not support Chinese word, and later obtained
http://www.cnblogs.com/yuhen/
Help solve this problem. (Recently, the search program of the blog garden has a problem, temporarily switched from Google).
Now, Lucene.NET supports word function, I downloaded the language processing package (
Lucene.NET NLS PACK
), Use of Lucene.Net.Analysis.cn.ChineseAlyzer to establish an index, but a deadlock occurs each time a index is established. I saw this article on SF.NET CJK Analysis Maybe Cause Dead Lock, I think it may be that there may be bugs in Lucene.Net.Aalogs.cn, checking the code in Lucene.Net.Analysis.cn, there is a problem, In the 148th line of Chinesetokenizer, change Datalen == -1 to Datalen == 0, and the problem of deadlocks is solved.
Later, I found this article
http://ms.mblogger.cn/yysun/posts/6092.aspx
The bug in Lucene.Net.Aalogs.cn is also told.
I changed two bugs and put it on the blog to download it. Although I only changed two lines of code, I wanted to change it here, it is a bit helpless for some of the initial users. BIN: http://www.cnblogs.com/files/dudu/lucene.net.Alysis.cn.rar src: http://www.cnblogs.com/files/dudu/lucene.net.nls.rar
Transfer from: DUDU Enjoy the programs