Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
jar
lucene-analyzers-2.0.1-dev.jar 58.6 kB 1 24-Aug-2009 13:26 fmannhardt lucene analysers apache licence 2.0

This page (revision-1) was last changed on 24-Aug-2009 13:25 by fmannhardt  

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 15 lines
According to the manual switching the built-in lucene search engine to some other language than english is easy. Just put for example:
%%prettify
{{{
jspwiki.lucene.analyzer = org.apache.lucene.analysis.de.GermanAnalyzer
}}}
/%
into the jspwiki.properties.
But how to retrieve the GermanAnalyzer? I did not find pre-compiled .jar archives with the contributed Analyzers anywhere in the net.
So you've to head over to: [http://archive.apache.org/dist/lucene/java/] and download the appropriate Lucene source-code version. I think JSPWiki 2.8.2 uses Lucene 2.0.0. Alternatively you can use SVN and check out TAG or BRANCH 2_0_0 from: [http://svn.eu.apache.org/repos/asf/]
Just run the ANT-Task /contrib/analyzers/build.xml with the command "jar" and there will be "/lucene-analyzers-2.0.1-dev.jar" in your build path. Now you've to copy this JAR file to /WEB-INF/lib/ directory of your JSPWiki installation and you may choose the right Analyzer for your language.
I've attached my pre-compiled version of Lucene Analyzer to this post.
Version Date Modified Size Author Changes ... Change note
1 24-Aug-2009 13:25 1.053 kB fmannhardt
« This page (revision-1) was last changed on 24-Aug-2009 13:25 by fmannhardt