Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2013, 03:48 PM   PM User | #1
timgolding
Senior Coder

 
timgolding's Avatar
 
Join Date: Aug 2006
Location: Southampton
Posts: 1,466
Thanks: 90
Thanked 110 Times in 109 Posts
timgolding is on a distinguished road
Indexes stopped working

I had some full text indexes that stopped working. I wasn't getting the expected results from my search. I created the indexes when i created the database. But the data is always being truncated then reinserted from another server via a script. When i do this upload do i need to do anything with the indexes. I assumed when i uploaded the database and as the data was inserted it would recreate the indexes. Or does it not do this? If it does then how can i find out what happened to my index?

I found that this command had resolved the problem and fixed the index

Code:
ALTER TABLE `DB_NAME`.`PRODUCT` DROP INDEX `PRODUCT_SIMPLE_INDEX` ,
ADD FULLTEXT `PRODUCT_SIMPLE_INDEX` (
`FullProductDescription` ,
`Description`
)
__________________
You can not say you know how to do something, until you can teach it to someone else.
timgolding is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 12:12 PM.


Advertisement
Log in to turn off these ads.