Why doesn't the search function work properly?

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
If I type "C#", there's no matches, if I type "C++" then it's "The following words are either very common, too long, or too short and were not included in your search : "C, "". The whole point of quotation marks is that the entire term is searched for, why on earth is it parsing it one letter at time? :mad:
 
Try without quotation marks?

Can't, there's a minimum of 3 letters for the search to work, otherwise it is judged as too short. I'm unsure about the C++ in quotation marks but it seems to only work on matching a string of consecutive letters so whether it doesn't include symbols in that I'm not certain.

//edit whoops, sorry apeZ, I read something completely different there.
 
Because the forum software maintains an index of posts that contain words or combinations of letters. Combinations too short match too many posts and combinations too large or using unusual characters mean there's too many combinations. Both of these make the index too big which means it's harder to store and harder to parse.

Indexing is expensive and most forums are not as wealthy as google.

You can however use google to search the forum, use a string like:
Code:
site:forums.overclockers.co.uk some "search terms"
it will even have cached treads which the forum has deleted and that didn't get into the archive. Which is another cost saving measure here.
 
MySQL is **** poor at full text searches, which is why ocuk switched to sphinx ages ago, bit of an old version now but still chugs along.

I'll look at getting the indexer limit dropped to 2 characters, not like sphinx really uses any resources anyway.
 
MySQL works fine for full text searches for me, though admittedly I've never used Sphinx so can't compare the two.
 
I think the real problem is that it doesn't do proper string searches.

e.g. search for "it supercalifragilisticexpialidocious"

This returns:

Crappy forum search said:
The search term you specified ("it*supercalifragilisticexpialidocious") is under the minimum word length (2) and therefore will not be found. Please make this term longer.
If this term contains a wildcard, please make this term more specific.

This is just plain wrong, it has inserted a wildcard where I didn't request one, I wanted to search for a string which is well over 35 chars and yet it is claiming that it is less than 2 characters.

Point taken about the indexer and having to have a break point for what it going to be indexed (space) but it is still really annoying.
 
Last edited:
Back
Top Bottom