The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Howto : Enable FullText Searching in vBulletin 3.0.2/3
This feature is not offcialy supported at this time, so enabling this is like hacking your forums You'll need to shut your boards down for security reasons and enter debug mode, or enable debug mode for yourself only. Once done, go into the vBulletin AdminCP > and select vBulletin Options. You will see an area called Version Info and Other Untouchables At the bottom you will see Fulltext Search Run the two querys it says to, adjust for table prefixes. Then click on yes and hit save. This feature is not offcialy supported at this time, so enabling this is like hacking your forums |
#32
|
||||
|
||||
Quote:
On my board for example (postindex = 25 million rows) I get memory limit exceeded errors from PHP with specific keywords, even if I increase the limit > 64 MB. So it is impossible to search for those keywords With mySQL fulltext search this shouldn't be a problem any longer. |
#33
|
||||
|
||||
The vB 3.0.2 mysql fulltext search is still not as efficient as the vB3 hack version (with my own customizations to the code). I tried the 3.0.2 version, and with over 8 million posts, it still brought the server down. With the other hack version, my server has not problems. Just making an observation.
|
#34
|
||||
|
||||
Quote:
|
#35
|
||||
|
||||
Quote:
With the custom code, the word "test" took 19 seconds (which is not fast by any means but it's a big database) - and scanned 100 rows (which is a limit I imposed, but which I can increase). This is just using the normal search page, with all settings default, searching all forums. It's not a fault to do with vB3 at all - fulltext has its own limitations too. The day that InnoDB supports fulltext, is the day the post table goes InnoDB, to prevent table locking. |
#36
|
||||
|
||||
Quote:
|
#37
|
||||
|
||||
Quote:
With 3.0.2 or 3.0.3 you should edit search.php and look for this around line 1303: FROM " . TABLE_PREFIX . "post AS post Change this to: FROM " . TABLE_PREFIX . "post AS post " . iif($vboptions['fulltextsearch'] AND $searchuser, "USE INDEX (userid)") . " When searching by posts by a specific user and returning results as posts, this will force mysql to search based on userid rather than using the fulltext index. On the whole this will be faster than searching fulltext and then manually scanning for userids. I'm just getting into imposing the proper limit options and re-evaluating the relevancy junk for the non-fulltext search. It is the extra queries that we have in place to support this pseudo-relevancy that complicates limiting searches when returning results as threads. |
#38
|
|||
|
|||
Freddy, I have activated the full text search but, apparently, it's making things worse, performance wise, for us, with huge load spikes that I am tracing back to the search function, as deactivating it has instantly eliminated them.
Could this be possible? Forum address is forum.gamesradar.it |
#39
|
||||
|
||||
I followed Zach's instructions to the letter, however I'm finding that there are many words that are coming up with empty results.
For example, if I search for the word "from", I get no matches. I emptied out most of the "bad words" in searchwords.php, but that didn't do anything. At the moment, Full Text Searching is missing the ball on quite a bit. Is there something else I need to do after enabling it? Some type of update or refresh to MySQL, perhaps? |
#40
|
||||
|
||||
As an additional note on my problem, most of the words I'm having problems with are either words less than four characters in length, or common words.
Now, my AdminCP has Minimum Word Length set to 3, and I've emptied most the stuff in searchwords.php. Does the Full Text Search have a different set of options for it than the Regular Search? If so, where are they, and what do I need to do in order to edit them? |
#41
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|