Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
hesk2.3
mysql 5.414
database: hesk23 utf_general_ci
webpage encoding:gb2312
It work fine except kb search, very good software especially convert ticket to kb article, it save many time.
User can browser use IE and Firefox with defalut page encoding in GB2312, the ticket with subject and message in Chinese can be view correctly after submit, also correctly in mysql, export to excel 97-2003 also correct.
I imported ticket and article from xls file. so the content are same, that's mean "ticket subject"="article subject" and "ticket message"="article content".
The ticket and article are display well both for user and admin.
The problem is when use "Ask Question" search (hesk suggest kb search) :
For Chinese word: no article found
For number(more than 4 digits) or english word(more than 3 letters): some articles found,( but if search by subject or message in ticket, more and more result can be found). I have the same content of ticket and article as I said.
I know there is some weak for the mysql full text search, so I want to change the search in article, like that in ticket, how to do it?
appreciate for any comments or suggestion
eagle
how to change search in article like that in ticket
Moderator: mkoch227
-
- Posts: 94
- Joined: Wed Feb 29, 2012 2:00 am
how to change search in article like that in ticket
Eagle
Life is a journey.
Life is a journey.
Re: how to change search in article like that in ticket
In "knowledgebase.php" try changing to and see if that helps.
Note that you will need to turn off article suggestion, because this way no articles will be found as it will search for exact same words in subject/content. This code could only work if you type in Ask a question and click Search.
Code: Select all
MATCH(`subject`,`content`) AGAINST (\''.hesk_dbEscape($query).'\')
Code: Select all
(`subject` LIKE \'%'.hesk_dbEscape($query).'%\' OR `content` LIKE \'%'.hesk_dbEscape($query).'%\')
Note that you will need to turn off article suggestion, because this way no articles will be found as it will search for exact same words in subject/content. This code could only work if you type in Ask a question and click Search.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 94
- Joined: Wed Feb 29, 2012 2:00 am
Re: how to change search in article like that in ticket
It said:
( ! ) Parse error: syntax error, unexpected T_STRING in D:\wamp\www\hesk2.3\knowledgebase.php on line 203
( ! ) Parse error: syntax error, unexpected T_STRING in D:\wamp\www\hesk2.3\knowledgebase.php on line 203
Eagle
Life is a journey.
Life is a journey.
Re: how to change search in article like that in ticket
How about this:
Code: Select all
(`subject` LIKE \'%'.hesk_dbEscape($query).'%\' OR `content` LIKE \'%'.hesk_dbEscape($query).'%\')
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 94
- Joined: Wed Feb 29, 2012 2:00 am
Re: how to change search in article like that in ticket
Great! It improved a lot.
when I type in "Ask a question:"
(I did turn off suggestion by set "Suggest KB articles: No", but it still work, I don't know why).
For english word, the suggestion show some articles(like 4) while keyin, more than ten times(like 50) article show after press "Enter";
so does number;
For Simple Chinese word, the suggestion show "No relevant articles found.", but press "Enter" or click "Search help", some articles showed.
I also changed knowledgebase_private.php to enable search for admin.
when I type in "Ask a question:"
(I did turn off suggestion by set "Suggest KB articles: No", but it still work, I don't know why).
For english word, the suggestion show some articles(like 4) while keyin, more than ten times(like 50) article show after press "Enter";
so does number;
For Simple Chinese word, the suggestion show "No relevant articles found.", but press "Enter" or click "Search help", some articles showed.
I also changed knowledgebase_private.php to enable search for admin.
Last edited by deserteagle369 on Sat Mar 31, 2012 3:23 am, edited 2 times in total.
Eagle
Life is a journey.
Life is a journey.
-
- Posts: 94
- Joined: Wed Feb 29, 2012 2:00 am
Re: how to change search in article like that in ticket
The view entire knowledge base can just browse category one by one, if there many categories and subcategories it is not good.
I want a search form for knowledge base, user can select to search in which category, also search in "name", "emal", "subject" and "content", how to do it?
thanks.
eagle
I want a search form for knowledge base, user can select to search in which category, also search in "name", "emal", "subject" and "content", how to do it?
thanks.
eagle
Eagle
Life is a journey.
Life is a journey.