Page 2 of 2

Re: Chinese search problem

PostPosted:Wed Apr 09, 2014 6:25 am
by Miesto
I have been re-indexed, but there a problem.
In Chinese version,
I search "library" under advanced mode's content,
but if I want to get answer, I need to search "l i b r a r y".
Have any solution can solve this problem?

I means when I search, there are blank between the words,
like "圖 書 館", but if the words without blank, like "圖書館",
then I can not get the answers.

Re: Chinese search problem

PostPosted:Mon Apr 14, 2014 9:27 am
by pavila
Please, attach a document to test.

Re: Chinese search problem

PostPosted:Wed Apr 16, 2014 4:57 am
by Miesto
pavila wrote:Please, attach a document to test.
If I search "圖書" or "圖書館" at name, I can find the data that I want.
(Please refer attached photo "name圖書.jpg" and "name圖書館.jpg".)
If I search 圖書館 at content, I can not find any result. (Please refer attached photo "content圖書館.jpg".),
but search "圖 書 館", it could search the data. (Please refer attached photo "content圖 書 館.jpg".)

Re: Chinese search problem

PostPosted:Wed Apr 23, 2014 9:34 pm
by pavila
Perhaps you can try with an analyzer from https://code.google.com/p/ik-analyzer. I can't try because documentation is in Chinese and I can't read it.

Re: Chinese search problem

PostPosted:Fri May 09, 2014 4:04 am
by Miesto
How could I copy to "openkm"?

Re: Chinese search problem

PostPosted:Fri May 09, 2014 11:32 am
by pavila
You can copy the library into $TOMCAT_HOME/lib

Re: Chinese search problem

PostPosted:Fri Feb 10, 2017 8:39 am
by aven1215
Dear

經過個人測試步驟

1、編輯 openkm.cfg 加入 hibernate.search.analyzer=org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer
2、restart openkm service
3、rebuid Lucen index

搜尋時有地方需要特別注意
右上搜尋框 僅供搜尋 "檔案名稱 or 自訂'關鍵字",若是英文可直接搜尋,但中文請在要找的搜尋字前面加上 * (星號)
全文檢索 請在搜尋字前面加上 ' (單引號)

這樣就可以搜尋到中文檔案與內容,也供未來有中文需要的人做參考