summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-02-17 21:43:31 +0100
committerAndras Timar <atimar@suse.com>2012-02-17 21:45:37 +0100
commit7636d37f8f9c53d694c4fe38581f3b495d53670e (patch)
treeb0e5fbc15b51c34c540d7b22eb68e1307057572c /xmlhelp
parentaf75ceb873e55fc2f252c4b02ea3d536470cfb87 (diff)
fdo#40665 use CJKAnalyzer for ko, zh-CN, and zh-TW, too
Diffstat (limited to 'xmlhelp')
-rwxr-xr-xxmlhelp/source/com/sun/star/help/HelpSearch.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmlhelp/source/com/sun/star/help/HelpSearch.java b/xmlhelp/source/com/sun/star/help/HelpSearch.java
index dc31514afcb0..03aadea8e298 100755
--- a/xmlhelp/source/com/sun/star/help/HelpSearch.java
+++ b/xmlhelp/source/com/sun/star/help/HelpSearch.java
@@ -255,7 +255,10 @@ public class HelpSearch
{
IndexReader reader = IndexReader.open( aIndexStr );
Searcher searcher = new IndexSearcher( reader );
- Analyzer analyzer = aLanguageStr.equals("ja") ? (Analyzer)new CJKAnalyzer() : (Analyzer)new StandardAnalyzer();
+ Analyzer analyzer = ( aLanguageStr.equals("ja")
+ || aLanguageStr.equals("ko")
+ || aLanguageStr.equals("zh-CN")
+ || aLanguageStr.equals("zh-TW") ) ? (Analyzer)new CJKAnalyzer() : (Analyzer)new StandardAnalyzer();
String aField;
if( bCaptionOnly )