WEBLUCENE deployment and deactivation

xiaoxiao2021-03-06  38

I. Introduction to Weblucene

Web lunce is a project in the SourceForge in the SourceForge, the detailed address in http://www.chedong.com/tech/weblucene.html. This project is very good to resolve the support of Chinese

Second, I don't have to introduce the basic principle, refer to the author's documentation.

Third, the problem

1. When compiling, you need to specify the path to Javacc, and only support JAVACC2.0. Since the release is the Linux version, you need to modify the path to the value in Build.Property.

2, survival index directory

The released index command is index.sh in the dump directory. If it is Windows, you need to re-establish the index.cmd file in the content, and modify the relevant environment variables and values.

3, copy the generated index directory to Tomcat's WebApps path below

4. There will be Chinese issues when inquiry, the cause is mainly caused by the character set, and the solution can be modified to POST as a result of the character set. Need to modify several places

1) WebluceneServlet.java Add a Dopost method

2), modify the index.html file, modify the get in Method to POST

3) Modify the var / searchbox.xsl file, modify the get in Method to POST

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

New Post(0)