No search results when the "-" character is used

Leave us posts on anything related to your views on gametoast.com, improvements, gripes, etc...

Moderator: Moderators

Post Reply
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

No search results when the "-" character is used

Post by mswf »

I just noticed this when I was searching the forums. Because of the search option,
Hidden/Spoiler:
[code]Place + in front of a word which must be found and - in front of a word which must not be found. Put a list of words separated by | into brackets if only one of the words must be found. Use * as a wildcard for partial matches.[/code]
no words with a "-" in them can be found. I know the cases where one would search for a word with that character are not that common, but I do wonder if it's possible to find a way around this. I only ask this because I presume there may be a work around that can be used for this.
I only know the basics of Php and Mysql, so I can't come up with a solution myself.
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: No search results when the "-" character is used

Post by 501st_commander »

No work around unless you want to rebuild the search.php, it phpBB's search feature. Try this "{wordhere} +- +{anotherword}".
Post Reply