The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Search not working after upgrade to vBulletin 4.2.2 Patch Level 4
Hello all,
After upgrading from 4.2.2 PL1 to 4.2.2 PL 4 the site searching no longer work, i.e. when users visit the following link (New Posts): mysite.co.uk/search.php?do=getnew&contenttype=vBForum_Post They following message: Quote:
mysite.co.uk/search.php?do=getdaily and that results in the following message: Quote:
As another example, the site is motorbike related so it is a word that is used very often. If I search 'motorbike' I get: Quote:
Any ideas? EDIT: When running mysqlcheck I did notice a number of tables I don't recall seeing before. All with names as follows (the number at the end changes): taggregate_temp_1410699360 Is this potential and indication of a failed upgrade? i.e. temp tables being left behind? |
#2
|
|||
|
|||
Quote:
|
#3
|
||||
|
||||
Try rebuilding your search index and see if that helps. I would also clear my "searchlog" table if you're familiar with doing so.
|
#4
|
|||
|
|||
Rightio, I have rebuilt the searchindexes using the command line utility as this is a mid to large site and doing this via ACP isn't really viable.
Unfortunately this made no difference, the problem still remains. Regarding the suggestion of clearing the search log. Are you talking about done a delete from / truncate of the searchlog table? Fairly simple to do via SQL admin but thought it better to check before I wade in with a delete command For reference, here is the output from the reindex: Quote:
Quote:
|
#5
|
|||
|
|||
Did you issue the REPAIR TABLE quick commands for searchcore_text and searchgroup_text, and then rebiuld the FULLTEXT indexes, and then drop the old indexes from the tables, and then create new FULLTEXT indexes for searchcore_text (title, keywordtext) and searchgroup_text (title)? That has worked for me in the past to straighten out various db search issues.
|
#6
|
||||
|
||||
Try disabling your server caching (apc?) and see if search works then.
|
#7
|
|||
|
|||
Short story, still no worky
Long story.... I have stopped APC* by disabling at both PHP (via apc.ini and then restarting httpd) and also vBulletin (config.php). I also confirmed it was stopped by loading the APC admin panel and getting the following: Quote:
Quote:
As mentioned, neither solution fixed the issue. * As an APC related aside I have fixed the PHP warning warning that came up when running searchindex.php via the command line (i.e. PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0) |
#8
|
|||
|
|||
This is what has worked for me...
Temporarily turn off forum access from the vB ACP... at Settings > Turn Your vBulletin On and Off. If you have modified full-text variables that affect indexing or changed the stopword file itself, you must rebuild your FULLTEXT indexes after making those changes and restarting the MySQL server. To restart the MySQL server, use the following command: service mysql restart Next, log into a MySQL terminal session. To rebuild the indexes it is usually sufficient to do a QUICK repair operation with: mysql> REPAIR TABLE searchcore_text QUICK; mysql> REPAIR TABLE searchgroup_text QUICK; Next, restart the MySQL server again: service mysql restart Next, rebuild your FULLTEXT indexes. To rebuild your indexes, you need to run the follow queries in sequence... But before doing so, emptying your search tables will speed things up. The queries to empty the tables are: truncate searchcore; truncate searchcore_text; truncate searchgroup; truncate searchgroup_text; Next you need to drop the old indexes off the tables. To drop the indexes, use the following commands: drop index text on searchcore_text; drop index grouptitle on searchgroup_text; Finally, you need to build new indexes. To recreate the specific indexes, use the following commands: CREATE FULLTEXT INDEX text ON searchcore_text (title, keywordtext); CREATE FULLTEXT INDEX grouptitle ON searchgroup_text (title); You can then go to your vB ACP and do an interface-executed rebuild session from there. To do this, go to the Maintenance > General Update Tools section of your vBulletin ACP. You optionally may want to empty the indexes from there before starting the rebuild process. Note: My search functionality wouldn't fully return until I did the following. Go to the Maintenance > Repair / Optimize Tables section of your vBulletin ACP and optimize the post and thread word tables. Next, you should probably then go to the Forums & Moderators > Forum Blocks Manager section of your vB ACP and click on Reload Block Types. Finally, re-enable your general forum access from the vB ACP at Settings > Turn Your vBulletin On and Off. Done. --------------- Added [DATE]1423066500[/DATE] at [TIME]1423066500[/TIME] --------------- One more noteworthy observation... I have noticed that after performing the above steps, there has been a significant latency period before the search function returned to normal. I'm assuming that such 'lag' to gain back correct search functionality is related to size of the particular database and the processor speed of the hosting machine in conjunction and how quickly those elements can complete the necessary work to restructure the indexes for the entire database. But that's merely a guess on my part. The main point is that once you've performed the above steps, you may want to give it a bit of time before concluding that things haven't changed. |
Благодарность от: | ||
Gio~Logist |
#9
|
||||
|
||||
Wow, that's quite the headache. Glad you're finally sorted though :up:
|
#10
|
||||
|
||||
Had to wait for the weekend to try the above...
Drum roll please.... It didn't work, still the same issue as described above (for more info on the steps performed see below) As a curious aside, one member was reporting that search was working for them. Turns out what they were doing was going into Advanced Search and under single content types selecting "show results as posts". Which is curious. Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|