Page 1 of 1

No search results when the "-" character is used

Posted: Sun Feb 14, 2010 11:13 am
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.

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

Posted: Mon Feb 15, 2010 3:43 pm
by 501st_commander
No work around unless you want to rebuild the search.php, it phpBB's search feature. Try this "{wordhere} +- +{anotherword}".