I got JForum 2.0.2 up and running on my Tomcat 5.5.4+JDK1.5.0+PostgreSQL 7.4/RedHat Linux 9 box. I use UTF-8 encoing. The Chinese input is fine. But I can't search back the post. Is there anything wrong about the search? There is always 0 result.
I find a way to fix this problem. Just modify the insertSearchWords() method in net/jforum/drivers/generic/SearchModel.java. Find the following code fragment.
change it into the following:
It will generate every word length longer than 1 into a keyword.
BTW. There is a little bug on searching capital word. JForum generates keyword in lowercase, for example, ok. However, if you input a keyword in uppercase, for example, OK. You won't get any result. To fix this bug, just modify the topicsByKeyword() method in this file again. Find the following code fragment.
Change it into the following:
recompile it and put the generate SearchModel.class to replace the original one. [originally posted on jforum.net by andowson]
Yes, lucene is a waiting feature. I see mvnForum hava use it. But they need to set URLEncoding=UTF-8 in Tomcat 5's Connector setting for Chinese fix.
If you've developed it in JForum, I'll help to test it in Chinese environment.
Before Lucene is integrated, the search still needs to work. So, I use this every word is keyword strategy. The users will think this forum is useful when they really post an article and they can search it back later. If they can't search back, they will think this forum is wrong no matter you use what kind of search engine.
Andowson [originally posted on jforum.net by Anonymous]