Lucene study notes (2) (bamboo shoots fried meat)

xiaoxiao2021-03-06  41

Lucene study notes (2)

Not only in the promotion and introduction, the Car Dong's Hanhua and Web applications in Lucene have also made a great contribution. He put its own Chinese and web applications on the SourceForge into an open source project. The following is mainly to learn notes for this project.

For Lucene's Chinese, the car has developed two analyzers, one is binary, a single-word split. The analysis can be used to analyze the index and retrieval of Chinese characters using any of these two. I was built into Lucene-1.2.jar after compiling these two analyzers. If you don't want to make your own friends, you can download it from here. With new Analyzer, I also used the Analyzer in IndexFiles, Indexhtml and SearchFiles, and replaced new CJKanalyzer and recompiled the bag Lucene-Demo-1.2.jar, which can be downloaded from here. There are three Java files that have been modified. With the above two JAR files, replace the original files of the same name, you can index and retrieve Chinese. The right side is my test.

转载请注明原文地址:https://www.9cbs.com/read-74874.html

New Post(0)