Atlassian confluence I think is a Wiki tool that is suitable for use to do project development. Of course it is commercial. If you are an open source project, you can apply for an open source License, it is cool.
However, the original version of the program is not good, its search is Lucene 1.4, which means that Lucene's Chinese search is not used (of course, the lucene package has no Chinese, and Confluence does not call the associated package. Compare jira, still a bit problem, of course, Jira can be configured, and there is no Chinese)
Through research, Lucene can use cjkanalyzer to do Chinese search, although there is such a shortcoming, after all, you can use (temporarily do not discuss the problem of this word, you can use it)
Search for related files of Conflunce, I found a Lucene.cfg.xml, called a Factory class inside: bucket.search.lucene.Analyzer.defaultluceneanalyzerfactory
This class is also called in IndexingsubsystemContext.xml.
Well, write a class to replace this class, or change the configuration file to get it.
Open Eclipse to create a new project, join Lucene's JAR package, join atlassian-bucket-0.6.9.jar
Create a category to replace the original class, such as ScudluceneAnalyzerFactory
code show as below:
Package org.apache.lucene.Analysis;
Import org.apache.lucene.Analysis.cjk.cjkanalyzer;
Import bucket.search.lucene.Analyzer.luceneAnalyzerfactory;
Public class
ScudluceneAnalyzerfactory Implements Luceneanalyzerfactory
{
Public scudluceneAnalyzerFactory ()
{
}
Public Analyzer CreateAlyzer ()
{
Return new cjkanalyzer ();
}
}
Compile, becomes a JAR package, put it in the Confluence's web-inf / lib directory, modify the Factory class in the configuration file mentioned above for your class.
Restart Tomcat, rebuild the index, OK, you can search Chinese (Of course, English is no problem)
--- It's too detailed ... this is not good?