Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 05-27-2008, 01:15 AM
Voyager-S Voyager-S is offline
 
Join Date: Mar 2004
Location: Spain
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Issues converting to Fulltext search (duplicated index)

Hello everyone.

I have a quite large forum (1,200,000+ posts, 15,000 members) and I'm currently unable to use the search funtion.

I've opened a support ticket but the responses I've got didn't solve my problem so I think this would be the best place to open this thread

I was having a lot of issues with my forum so I tried to convert to fulltext, hoping I would have a better performance.

When I ran the query, my server went crazy so I had to stop it. Final result: post table crashed and a duplicated index on the table (title and title_2). After 15 hours of repairing the post table and trying to recreate the index, I still have a duplicated index (though it shows as fulltext), but when checking the search options, it still shows that I'm using the vB search function instead of Fulltext search. And of course, the normal search doesn't work properly cause I had to empty the index.

Having so many problems with my DB lately, I'm scared to delete the wrong index, so I could really use some help. By the way, I ran the query to alter the thread table too.

I'm a little bit lost. Anyone willing to help? I'll prepare cookies for everyone :erm:

Thanks in advance, guys!

Edit: When I enter the post table through phpMyAdmin I get a warning: 'The following indexes appear to be equal and one of them should be removed: title, title_2'
Reply With Quote
  #2  
Old 05-27-2008, 02:22 AM
Voyager-S Voyager-S is offline
 
Join Date: Mar 2004
Location: Spain
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

An attachment of the index section for the 'table' post in phpMyAdmin
Attached Images
File Type: jpg Imagen 1.jpg (47.5 KB, 0 views)
Reply With Quote
  #3  
Old 05-27-2008, 02:28 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you tried Maintainance->Repairing/Optimizing tables and Fix Unique Indexes
Reply With Quote
  #4  
Old 05-27-2008, 02:38 AM
Voyager-S Voyager-S is offline
 
Join Date: Mar 2004
Location: Spain
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did a full repair through SSH (it took many MANY hours) and also fixed the Unique Indexes. Stil having that problem after doing that.

EDIT: I want to add that i have no hacks or plug-in's installed. In fact I'm waiting to fix this to reinstall my plug-ins. This didn't happen after using any hack, it happen after the database crashed.

BTW I could really use a list of the tables and fields included in a default vB installation, I wanna make sure I don't have anything left in the DB from any past hack
Reply With Quote
  #5  
Old 06-02-2008, 10:22 PM
Voyager-S Voyager-S is offline
 
Join Date: Mar 2004
Location: Spain
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could really use some help with this, still not working. I erased the title_2 index but for some reason, vBulletin doesn't recognize the fulltext search index. I think I've done everything I could already, still no hacks running but can't seem to get this to work.

The weird thing about this is that even though we ran both queries and everything seems to be ok after deleting the duplicated index, the admin CP still says I'm using de default vBsearch! So I can't choose to go back to the default vB search type, it's already using it. And knowing that we emptied the index used by the default search when converting to fulltext, it's only working with the posts created AFTER we ran the convert to fulltext queries (remember it took around 15 hours!). Permission problem? maybe we have to force that option? It's weird.
Reply With Quote
  #6  
Old 06-02-2008, 10:27 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What cmd(s) did you run via ssh to fix the db?

What version of mysql are you running on the server?
Reply With Quote
  #7  
Old 06-02-2008, 11:13 PM
Voyager-S Voyager-S is offline
 
Join Date: Mar 2004
Location: Spain
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply, snakes.

I ran through console (same user, database and password as my vB installation) the two queries needed according to the vB options:

ALTER TABLE post ADD FULLTEXT INDEX (title,pagetext)
ALTER TABLE thread ADD FULLTEXT INDEX (title)

My MySQL version is 5.0.45-community

--------------- Added [DATE]1212456274[/DATE] at [TIME]1212456274[/TIME] ---------------

It seems we solved this issue by forcing vBulletin to use fulltext search through the settings table and then restarting apache and mysql.

Thanks again!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04214 seconds
  • Memory Usage 2,231KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete