<map:generator name="search"
src="org.apache.cocoon.generation.SearchGenerator">
<analyzer>
org.apache.lucene.analysis.de.GermanAnalyzer
</analyzer>
</map:generator>Without success as SearchGenerator was always using the StandardAnalyser. I looked into the source code and found within the configure-method following commented code:
// get the analyzer
// Analyzer analyzer =
//LuceneCocoonHelper.getAnalyzer("org.apache.lucene.analysis.standard.StandardAnalyzer");
// lcs.setAnalyzer(analyzer);Later I found in the method buildHits() the static class loading of the StandardAnalyzer:
.....
lcs = (LuceneCocoonSearcher)
this.manager.lookup(LuceneCocoonSearcher.ROLE);
Analyzer analyzer =
LuceneCocoonHelper.getAnalyzer(
"org.apache.lucene.analysis.standard.StandardAnalyzer");
lcs.setAnalyzer(analyzer);
.....So it seems to me that the SearchGenerator is not as configurable as the documentation says. It seems to me that it is always using the StandardAnalyzer.
So what do you think. Is this a bug? Cocoon version 2.1.5
Thanks
Harald
