there is a wordsonly() function in ~admin/functions.php
which looks like it's designed to do EXACTLY what I'm suggesting/describing. However, I can't find any place in any of the vBulletin code that calls the function.
Considering that lines comprising the "wordsonly" function are immediately prior to the lines containing the "indexpost()" code,
I'm wondering if its inclusion was accidently dropped/forgotten.
I diffed our functions.php against a distribution copy to make sure the file has't been edited here. It hasn't.
============
Above, I said "exactly".
That's not quite correct.
In the line that reads:
$text=ereg_replace("[^ 0-9a-z]"," ",$text);
a space character is used for the replacement.
I'm thinking either of these would be more appropriate:
-- replace any non-alphanumeric char with an EMPTY
(strip, instead of replacing with space)
-=or=-
-- use a temp var, and use an "if" statement
{{{ if a non-alphanumeric char found middle-of-word, do NOT perform $text += $tempvar }}}
(perhaps we should allow a hyphen, or minus, char)
to weed out the "junk" words.
=========== Oh! Lookie what I just found! ===========
http://www.vbulletin.com/forum/showt...threadid=11710
So... this function *WAS* dropped...
...and people have been complaining about the slowness,
system load, and the HUGE size of the searchindex ever since, haven't they?