Joker sign for search?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
tjnurmin
Posts: 2
Joined: Tue Mar 12, 2013 2:33 pm

Joker sign for search?

Post by tjnurmin »

Script URL:
Version of script: 2.4
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: search, joker, fulltext

Write your message below:
What is the joker sign for cutting search word in HESK? Asterisk didn't seem to work.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Joker sign for search?

Post by Klemen »

There is no "joker sign" because it uses fulltext mysql search. You will need to enter full words.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
tjnurmin
Posts: 2
Joined: Tue Mar 12, 2013 2:33 pm

Re: Joker sign for search?

Post by tjnurmin »

Yes, I noticed HESK uses FULLTEXT but in that case the wildcard operator should be asterisk, right?

http://dev.mysql.com/doc/refman/5.0/en/ ... olean.html

"The asterisk serves as the truncation (or wildcard) operator."

Asterisk does not seem to work, however.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Joker sign for search?

Post by Klemen »

The asterisk (and some other operators) work in boolean mode only, so you would need to modify SQL statements to say for example:

Code: Select all

... MATCH(`subject`,`content`,`keywords`) AGAINST ('wildcard*' IN BOOLEAN MODE) ...
Note that the IN BOOLEAN MODE was added in the AGAINST statement.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply