[opencms-dev] OpenCMS 5.0.1 and Lucene: searching japanese text
???
shiys at langhua.cn
Thu Mar 31 13:33:53 CEST 2005
Hi Uwe,
You need to parse the query string and then search the new string in lucene. I use the following code for Simplified Chinese:
Analyzer analyzer = new StandardAnalyzer();
String newquery = QueryParser.parse(query, "", analyzer).toString();
You can print out to see what's the difference.
Regards,
Shi Yusen/Beijing Langua Ltd.
-----????-----
???: Uwe König [mailto:uwederkoenig at web.de]
????: 2005?3?31? 14:43
???: opencms-dev at opencms.org
??: [opencms-dev] OpenCMS 5.0.1 and Lucene: searching japanese text
Hello to all,
we're hosting, among others, a site that is available in english,
german and japanese. We installed the Lucene-module, works perfectly
for english and german text. Now we gave Lucene the japanese parts
of the site and an index is indeed created, but if I search a
japanese term, nothing is found (I know for sure that one page
contents the term).
I even tried the CJKAnalyzer for Lucene instead of the
StandardAnalyzer, but without success.
If anyone has experience in getting the Lucene-module to work with
japanese, chinese or other asian text, I'd be glad for some hints.
Best regards,
Uwe König
More information about the opencms-dev
mailing list